rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 24c5cdc273
commit a13e26c2f1

@ -20,7 +20,7 @@
#include "atlanticclient.h"
#include "atlanticclient.moc"
AtlanticClient::AtlanticClient(TQObject *tqparent, const char *name) : TQSocket(tqparent, name)
AtlanticClient::AtlanticClient(TQObject *parent, const char *name) : TQSocket(parent, name)
{
connect(this, TQT_SIGNAL(readyRead()), this, TQT_SLOT(readData()));
}

@ -25,7 +25,7 @@ Q_OBJECT
TQ_OBJECT
public:
AtlanticClient(TQObject *tqparent = 0, const char *name = 0);
AtlanticClient(TQObject *parent = 0, const char *name = 0);
void sendData(const TQString &data);
private slots:

@ -64,7 +64,7 @@
#include "selectgame_widget.h"
#include "selectconfiguration_widget.h"
LogTextEdit::LogTextEdit( TQWidget *tqparent, const char *name ) : TQTextEdit( tqparent, name )
LogTextEdit::LogTextEdit( TQWidget *parent, const char *name ) : TQTextEdit( parent, name )
{
#ifdef KDE_3_2_FEATURES
m_clear = KStdAction::clear( TQT_TQOBJECT(this), TQT_SLOT( clear() ), 0 );

@ -74,7 +74,7 @@ Q_OBJECT
TQ_OBJECT
public:
LogTextEdit( TQWidget *tqparent = 0, const char *name = 0 );
LogTextEdit( TQWidget *parent = 0, const char *name = 0 );
virtual ~LogTextEdit();
TQPopupMenu *createPopupMenu( const TQPoint & pos );

@ -40,9 +40,9 @@
#include "atlantik.h"
#include "configdlg.moc"
ConfigDialog::ConfigDialog(Atlantik* tqparent, const char *name) : KDialogBase(IconList, i18n("Configure Atlantik"), Ok|Cancel, Ok, tqparent, "config_atlantik", false, name)
ConfigDialog::ConfigDialog(Atlantik* parent, const char *name) : KDialogBase(IconList, i18n("Configure Atlantik"), Ok|Cancel, Ok, parent, "config_atlantik", false, name)
{
m_parent = tqparent;
m_parent = parent;
p_general = addPage(i18n("General"), i18n("General"), BarIcon("configure", KIcon::SizeMedium));
p_p13n = addPage(i18n("Personalization"), i18n("Personalization"), BarIcon("personal", KIcon::SizeMedium));
p_board = addPage(i18n("Board"), i18n("Board"), BarIcon("monop_board", KIcon::SizeMedium));
@ -111,21 +111,21 @@ AtlantikConfig ConfigDialog::config()
return m_parent->config();
}
ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQLabel *label = new TQLabel(i18n("Player name:"), tqparent);
TQLabel *label = new TQLabel(i18n("Player name:"), parent);
tqlayout->addWidget(label);
m_playerName = new TQLineEdit(tqparent);
m_playerName = new TQLineEdit(parent);
tqlayout->addWidget(m_playerName);
TQLabel *label2 = new TQLabel(i18n("Player image:"), tqparent);
TQLabel *label2 = new TQLabel(i18n("Player image:"), parent);
tqlayout->addWidget(label2);
m_playerIcon = new KPushButton(tqparent, "playerIcon");
m_playerIcon = new KPushButton(parent, "playerIcon");
tqlayout->addWidget(m_playerIcon);
connect( m_playerIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseImage()) );
@ -182,12 +182,12 @@ void ConfigPlayer::reset()
setImage();
}
ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
m_connectOnStart = new TQCheckBox(i18n("Request list of Internet servers on start-up"), tqparent);
m_connectOnStart = new TQCheckBox(i18n("Request list of Internet servers on start-up"), parent);
tqlayout->addWidget(m_connectOnStart);
TQString message=i18n(
@ -195,7 +195,7 @@ ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *tqpar
"request a list of Internet servers.\n");
TQWhatsThis::add(m_connectOnStart, message);
m_hideDevelopmentServers = new TQCheckBox(i18n("Hide development servers"), tqparent);
m_hideDevelopmentServers = new TQCheckBox(i18n("Hide development servers"), parent);
tqlayout->addWidget(m_hideDevelopmentServers);
message=i18n(
@ -225,12 +225,12 @@ void ConfigMonopigator::reset()
m_hideDevelopmentServers->setChecked(m_configDialog->config().hideDevelopmentServers);
}
ConfigGeneral::ConfigGeneral(ConfigDialog *configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigGeneral::ConfigGeneral(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
m_chatTimestamps = new TQCheckBox(i18n("Show timestamps in chat messages"), tqparent);
m_chatTimestamps = new TQCheckBox(i18n("Show timestamps in chat messages"), parent);
tqlayout->addWidget(m_chatTimestamps);
TQString message=i18n(
@ -253,12 +253,12 @@ void ConfigGeneral::reset()
m_chatTimestamps->setChecked(m_configDialog->config().chatTimestamps);
}
ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Game tqStatus Feedback"), tqparent);
TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Game tqStatus Feedback"), parent);
tqlayout->addWidget(box);
m_indicateUnowned = new TQCheckBox(i18n("Display title deed card on unowned properties"), box);
@ -291,7 +291,7 @@ ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *tqparent, const c
"will have a Quartz effect similar to the Quartz KWin style.\n");
TQWhatsThis::add(m_quartzEffects, message);
// box = new TQGroupBox(1, Qt::Horizontal, i18n("Size"), tqparent);
// box = new TQGroupBox(1, Qt::Horizontal, i18n("Size"), parent);
// tqlayout->addWidget(box);
tqlayout->addStretch(1);

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigPlayer(ConfigDialog *configDialog, TQWidget *tqparent, const char *name=0);
ConfigPlayer(ConfigDialog *configDialog, TQWidget *parent, const char *name=0);
TQString playerName();
TQString playerImage();
@ -62,7 +62,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigBoard(ConfigDialog *configDialog, TQWidget *tqparent, const char *name=0);
ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const char *name=0);
bool indicateUnowned();
bool highliteUnowned();
@ -83,7 +83,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigMonopigator(ConfigDialog *dialog, TQWidget *tqparent, const char *name = 0);
ConfigMonopigator(ConfigDialog *dialog, TQWidget *parent, const char *name = 0);
bool connectOnStart();
bool hideDevelopmentServers();
@ -101,7 +101,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigGeneral(ConfigDialog *dialog, TQWidget *tqparent, const char *name = 0);
ConfigGeneral(ConfigDialog *dialog, TQWidget *parent, const char *name = 0);
bool chatTimestamps();
@ -118,7 +118,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigDialog(Atlantik *tqparent, const char *name=0);
ConfigDialog(Atlantik *parent, const char *name=0);
bool chatTimestamps();
bool indicateUnowned();

@ -47,8 +47,8 @@ TQPtrList<Event> EventLog::events()
return m_events;
}
EventLogWidget::EventLogWidget(EventLog *eventLog, TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name,
EventLogWidget::EventLogWidget(EventLog *eventLog, TQWidget *parent, const char *name)
: TQWidget(parent, name,
WType_Dialog | WStyle_Customize | WStyle_DialogBorder | WStyle_Title |
WStyle_Minimize | WStyle_ContextHelp )
{

@ -55,7 +55,7 @@ Q_OBJECT
public:
enum EventLogType { Default, Net_In, Net_Out };
EventLogWidget(EventLog *eventLog, TQWidget *tqparent=0, const char *name = 0);
EventLogWidget(EventLog *eventLog, TQWidget *parent=0, const char *name = 0);
public slots:
void addEvent(Event *event);

@ -108,12 +108,12 @@ void Monopigator::processData(const TQByteArray &data, bool okSoFar)
}
}
MonopigatorEntry::MonopigatorEntry(TQListView *tqparent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip) : TQObject(), TQListViewItem(tqparent, host, latency, version, users, port)
MonopigatorEntry::MonopigatorEntry(TQListView *parent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip) : TQObject(), TQListViewItem(parent, host, latency, version, users, port)
{
m_isDev = ( version.find( TQRegExp("(CVS|-dev)") ) != -1 ) ? true : false;
setEnabled(false);
tqparent->sort();
parent->sort();
if ( !ip.isEmpty() )
host = ip;

@ -62,7 +62,7 @@ Q_OBJECT
TQ_OBJECT
public:
MonopigatorEntry(TQListView *tqparent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip);
MonopigatorEntry(TQListView *parent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip);
int compare(TQListViewItem *i, int col, bool ascending) const;
bool isDev() const;

@ -33,7 +33,7 @@
#include "selectconfiguration_widget.moc"
SelectConfiguration::SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
SelectConfiguration::SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;
m_game = 0;

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT
public:
SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name=0);
SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *parent, const char *name=0);
void setCanStart(const bool &canStart);
TQString hostToConnect() const;

@ -29,7 +29,7 @@
#include "selectgame_widget.h"
SelectGame::SelectGame(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
SelectGame::SelectGame(AtlanticCore *atlanticCore, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;

@ -33,7 +33,7 @@ Q_OBJECT
TQ_OBJECT
public:
SelectGame(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name=0);
SelectGame(AtlanticCore *atlanticCore, TQWidget *parent, const char *name=0);
void initPage();
bool validateNext();

@ -28,7 +28,7 @@
#include "selectserver_widget.moc"
SelectServer::SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
SelectServer::SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_hideDevelopmentServers = hideDevelopmentServers;

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT
public:
SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *tqparent, const char *name=0);
SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *parent, const char *name=0);
virtual ~SelectServer();
void initPage();

@ -26,7 +26,7 @@
#include "player.h"
#include "trade.h"
AtlanticCore::AtlanticCore(TQObject *tqparent, const char *name) : TQObject(tqparent, name)
AtlanticCore::AtlanticCore(TQObject *parent, const char *name) : TQObject(parent, name)
{
m_playerSelf = 0;
}

@ -36,7 +36,7 @@ Q_OBJECT
TQ_OBJECT
public:
AtlanticCore(TQObject *tqparent, const char *name);
AtlanticCore(TQObject *parent, const char *name);
void reset(bool deletePermanents = false);

@ -33,7 +33,7 @@
#include "auction_widget.moc"
AuctionWidget::AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
AuctionWidget::AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;

@ -39,7 +39,7 @@ Q_OBJECT
TQ_OBJECT
public:
AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *tqparent, const char *name=0);
AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *parent, const char *name=0);
private slots:
void auctionChanged();

@ -35,7 +35,7 @@
#include "board.h"
#include "board.moc"
AtlantikBoard::AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
AtlantikBoard::AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;
m_maxEstates = maxEstates;

@ -40,7 +40,7 @@ Q_OBJECT
public:
enum DisplayMode { Play, Edit };
AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *tqparent, const char *name=0);
AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *parent, const char *name=0);
~AtlantikBoard();
void reset();

@ -39,7 +39,7 @@
#include "estatedetails.h"
#include "kwrappedlistviewitem.h"
EstateDetails::EstateDetails(Estate *estate, TQString text, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
EstateDetails::EstateDetails(Estate *estate, TQString text, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_pixmap = 0;
m_quartzBlocks = 0;

@ -38,7 +38,7 @@ class EstateDetails : public TQWidget
TQ_OBJECT
public:
EstateDetails(Estate *estate, TQString text, TQWidget *tqparent, const char *name = 0);
EstateDetails(Estate *estate, TQString text, TQWidget *parent, const char *name = 0);
~EstateDetails();
Estate *estate() { return m_estate; }

@ -36,7 +36,7 @@
#include "estateview.moc"
#include "config.h"
EstateView::EstateView(Estate *estate, EstateOrientation orientation, const TQString &_icon, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name, WResizeNoErase)
EstateView::EstateView(Estate *estate, EstateOrientation orientation, const TQString &_icon, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *parent, const char *name) : TQWidget(parent, name, WResizeNoErase)
{
m_estate = estate;
m_orientation = orientation;

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT
public:
EstateView(Estate *estate, EstateOrientation orientation, const TQString &, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *tqparent, const char *name = 0);
EstateView(Estate *estate, EstateOrientation orientation, const TQString &, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *parent, const char *name = 0);
void setViewProperties(bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects);
Estate *estate() { return m_estate; }
void updatePE();

@ -31,16 +31,16 @@
#include "kwrappedlistviewitem.h"
KWrappedListViewItem::KWrappedListViewItem( TQListView *tqparent, TQString text, TQString t2 )
: TQObject(), KListViewItem( tqparent )
KWrappedListViewItem::KWrappedListViewItem( TQListView *parent, TQString text, TQString t2 )
: TQObject(), KListViewItem( parent )
{
init( tqparent, text, t2 );
init( parent, text, t2 );
}
KWrappedListViewItem::KWrappedListViewItem( TQListView *tqparent, TQListViewItem *after, TQString text, TQString t2 )
: TQObject(), KListViewItem( tqparent, after )
KWrappedListViewItem::KWrappedListViewItem( TQListView *parent, TQListViewItem *after, TQString text, TQString t2 )
: TQObject(), KListViewItem( parent, after )
{
init( tqparent, text, t2 );
init( parent, text, t2 );
}
void KWrappedListViewItem::setup()
@ -91,11 +91,11 @@ void KWrappedListViewItem::wrapColumn( int c )
delete wrap;
}
void KWrappedListViewItem::init( TQListView *tqparent, TQString text, TQString t2 )
void KWrappedListViewItem::init( TQListView *parent, TQString text, TQString t2 )
{
m_wrapColumn = 0;
setMultiLinesEnabled( true );
tqparent->setResizeMode( TQListView::LastColumn );
parent->setResizeMode( TQListView::LastColumn );
m_origText = text;
@ -110,7 +110,7 @@ void KWrappedListViewItem::init( TQListView *tqparent, TQString text, TQString t
wrapColumn( m_wrapColumn );
connect( tqparent->header(), TQT_SIGNAL(sizeChange(int, int, int)), this, TQT_SLOT(wrapColumn(int)));
connect( parent->header(), TQT_SIGNAL(sizeChange(int, int, int)), this, TQT_SLOT(wrapColumn(int)));
}
#include "kwrappedlistviewitem.moc"

@ -38,8 +38,8 @@ Q_OBJECT
TQ_OBJECT
public:
KWrappedListViewItem( TQListView *tqparent, TQString text, TQString=TQString() );
KWrappedListViewItem( TQListView *tqparent, TQListViewItem *after, TQString text, TQString=TQString() );
KWrappedListViewItem( TQListView *parent, TQString text, TQString=TQString() );
KWrappedListViewItem( TQListView *parent, TQListViewItem *after, TQString text, TQString=TQString() );
void setup();
// int width(const TQFontMetrics& fm, const TQListView* lv, int c) const;
@ -47,7 +47,7 @@ private slots:
void wrapColumn( int c );
private:
void init( TQListView *tqparent, TQString text, TQString=TQString() );
void init( TQListView *parent, TQString text, TQString=TQString() );
TQString m_origText;
int m_wrapColumn;
};

@ -21,7 +21,7 @@
#include "portfolioestate.moc"
#include "estate.h"
PortfolioEstate::PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
PortfolioEstate::PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_estate = estate;
m_player = player;

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT
public:
PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *tqparent, const char *name = 0);
PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *parent, const char *name = 0);
Estate *estate() { return m_estate; }
static TQPixmap drawPixmap(Estate *estate, Player *player = 0, bool alwaysOwned = true);

@ -40,7 +40,7 @@
#define PE_MARGINH 2
#define ICONSIZE 48
PortfolioView::PortfolioView(AtlanticCore *core, Player *player, TQColor activeColor, TQColor inactiveColor, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
PortfolioView::PortfolioView(AtlanticCore *core, Player *player, TQColor activeColor, TQColor inactiveColor, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = core;
m_player = player;

@ -36,7 +36,7 @@ Q_OBJECT
TQ_OBJECT
public:
PortfolioView(AtlanticCore *core, Player *_player, TQColor activeColor, TQColor inactiveColor, TQWidget *tqparent, const char *name = 0);
PortfolioView(AtlanticCore *core, Player *_player, TQColor activeColor, TQColor inactiveColor, TQWidget *parent, const char *name = 0);
~PortfolioView();
void buildPortfolio();

@ -33,11 +33,11 @@
#define TOKEN_ICONSIZE 32
Token::Token(Player *player, AtlantikBoard *tqparent, const char *name) : TQWidget(tqparent, name)
Token::Token(Player *player, AtlantikBoard *parent, const char *name) : TQWidget(parent, name)
{
setBackgroundMode(NoBackground); // avoid flickering
m_parentBoard = tqparent;
m_parentBoard = parent;
m_player = player;
connect(m_player, TQT_SIGNAL(changed(Player *)), this, TQT_SLOT(playerChanged()));

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT
public:
Token (Player *player, AtlantikBoard *tqparent, const char *name = 0);
Token (Player *player, AtlantikBoard *parent, const char *name = 0);
~Token();
Player *player();
void setLocation(Estate *estate);

@ -44,8 +44,8 @@
#include "trade_widget.moc"
TradeDisplay::TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name,
TradeDisplay::TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *parent, const char *name)
: TQWidget(parent, name,
WType_Dialog | WStyle_Customize | WStyle_DialogBorder | WStyle_Title |
WStyle_Minimize | WStyle_ContextHelp )
{

@ -42,7 +42,7 @@ Q_OBJECT
TQ_OBJECT
public:
TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *tqparent=0, const char *name = 0);
TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *parent=0, const char *name = 0);
Trade *trade() { return mTrade; }

@ -8,7 +8,7 @@
#include "ledmeter.h"
#include "ledmeter.moc"
KALedMeter::KALedMeter( TQWidget *tqparent ) : TQFrame( tqparent )
KALedMeter::KALedMeter( TQWidget *parent ) : TQFrame( parent )
{
mCRanges.setAutoDelete( true );
mRange = 100;

@ -16,7 +16,7 @@ class KALedMeter : public TQFrame
Q_OBJECT
TQ_OBJECT
public:
KALedMeter( TQWidget *tqparent );
KALedMeter( TQWidget *parent );
int range() const { return mRange; }
void setRange( int r );

@ -63,8 +63,8 @@ kas_animations [] =
KAsteroidsView::KAsteroidsView( TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name ),
KAsteroidsView::KAsteroidsView( TQWidget *parent, const char *name )
: TQWidget( parent, name ),
field(640, 440),
view(&field,this)
{

@ -22,7 +22,7 @@ class KAsteroidsView : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
KAsteroidsView( TQWidget *tqparent = 0, const char *name = 0 );
KAsteroidsView( TQWidget *parent = 0, const char *name = 0 );
virtual ~KAsteroidsView();
int refreshRate;

@ -16,8 +16,8 @@
extern Options settings;
ConfigBox::ConfigBox ( TQWidget *tqparent, const char *name)
: KDialogBase ( tqparent, name, true, i18n("Configure"), Ok | Cancel, Ok, true )
ConfigBox::ConfigBox ( TQWidget *parent, const char *name)
: KDialogBase ( parent, name, true, i18n("Configure"), Ok | Cancel, Ok, true )
{
TQWidget *page = makeMainWidget();

@ -26,8 +26,8 @@
extern Options settings;
Feld::Feld( TQWidget *tqparent, const char *name ) :
TQWidget( tqparent, name ),
Feld::Feld( TQWidget *parent, const char *name ) :
TQWidget( parent, name ),
data(locate("appdata", "pics/abilder.png")),
undoBegin (0), undoSize (0), redoSize (0)
{

@ -33,7 +33,7 @@ class Feld : public TQWidget
TQ_OBJECT
public:
Feld (TQWidget *tqparent=0, const char *name=0);
Feld (TQWidget *parent=0, const char *name=0);
~Feld ();
enum Direction { None = 0,

@ -167,8 +167,8 @@ void GameWidget::restartLevel()
updateLevel(level);
}
GameWidget::GameWidget ( TQWidget *tqparent, const char* name )
: TQWidget( tqparent, name )
GameWidget::GameWidget ( TQWidget *parent, const char* name )
: TQWidget( parent, name )
{
level = 1;
nlevels = KGlobal::dirs()->findAllResources("appdata", "levels/level_*",

@ -17,7 +17,7 @@ class GameWidget : public TQWidget
public:
GameWidget ( TQWidget *tqparent, const char *name=0 );
GameWidget ( TQWidget *parent, const char *name=0 );
~GameWidget();

@ -26,7 +26,7 @@
extern int level;
Molek::Molek( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ),
Molek::Molek( TQWidget *parent, const char *name ) : TQWidget( parent, name ),
data(locate("appdata", "pics/molek.png"))
{
setBackgroundColor (TQColor (0, 0, 0));

@ -26,7 +26,7 @@ class Molek : public TQWidget
TQ_OBJECT
public:
Molek (TQWidget *tqparent=0, const char *name=0);
Molek (TQWidget *parent=0, const char *name=0);
~Molek ();
void load(const KSimpleConfig& config);

@ -642,7 +642,7 @@ bool KBgEngineFIBS::queryClose()
if (connection->state() == TQSocket::Idle)
return true;
switch (KMessageBox::warningYesNoCancel((TQWidget *)tqparent(),i18n("Still connected. Log out first?"),TQString(),i18n("Log Out"), i18n("Stay Connected"))) {
switch (KMessageBox::warningYesNoCancel((TQWidget *)parent(),i18n("Still connected. Log out first?"),TQString(),i18n("Log Out"), i18n("Stay Connected"))) {
case KMessageBox::Yes :
disconnectFIBS();
return true;
@ -731,7 +731,7 @@ void KBgEngineFIBS::away()
bool ret;
TQString msg = KLineEditDlg::getText(i18n("Please type the message that should be displayed to other\n"
"users while you are away."),
lastAway, &ret, (TQWidget *)tqparent());
lastAway, &ret, (TQWidget *)parent());
if (ret) {
lastAway = msg;
emit serverString("away " + msg);
@ -1052,7 +1052,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
msg = KLineEditDlg::getText(i18n("Enter the name of the server you want to connect to.\n"
"This should almost always be \"fibs.com\"."),
infoFIBS[FIBSHost], &ret, (TQWidget *)tqparent());
infoFIBS[FIBSHost], &ret, (TQWidget *)parent());
if (ret)
infoFIBS[FIBSHost] = msg;
@ -1064,7 +1064,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
msg = KLineEditDlg::getText(i18n("Enter the port number on the server. "
"It should almost always be \"4321\"."),
infoFIBS[FIBSPort], &ret, (TQWidget *)tqparent());
infoFIBS[FIBSPort], &ret, (TQWidget *)parent());
if (ret)
infoFIBS[FIBSPort] = msg;
@ -1088,7 +1088,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
first = true;
do {
msg = (KLineEditDlg::getText(text, infoFIBS[FIBSUser], &ret,
(TQWidget *)tqparent())).stripWhiteSpace();
(TQWidget *)parent())).stripWhiteSpace();
if (first) {
text += i18n("The login may not contain spaces or colons!");
first = false;
@ -1400,7 +1400,7 @@ void KBgEngineFIBS::handleMessageConnect(const TQString &line, const TQString &r
if (rxCollect.isEmpty()) {
rxtqStatus = RxIgnore;
int ret = KMessageBox::warningContinueCancel
((TQWidget *)tqparent(), i18n("There was a problem with "
((TQWidget *)parent(), i18n("There was a problem with "
"your login and password. "
"You can reenter\n"
"your login and password and "
@ -1574,7 +1574,7 @@ void KBgEngineFIBS::handleMessageNewLogin(const TQString &line)
do {
msg = (KLineEditDlg::getText(text, infoFIBS[FIBSUser], &ret,
(TQWidget *)tqparent())).stripWhiteSpace();
(TQWidget *)parent())).stripWhiteSpace();
if (first) {
text += i18n("\n\nThe login may not contain spaces or colons!");
first = false;
@ -2091,13 +2091,13 @@ void KBgEngineFIBS::handleMessageNormal(TQString &line, TQString &rawline)
/*
* Constructor
*/
KBgEngineFIBS::KBgEngineFIBS(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(tqparent, name, pmenu)
KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(parent, name, pmenu)
{
/*
* No connection, not playing, ready for login
*/
connection = new TQSocket(TQT_TQOBJECT(tqparent), "fibs connection");
connection = new TQSocket(TQT_TQOBJECT(parent), "fibs connection");
playing = false;
login = true;

@ -67,7 +67,7 @@ public:
/**
* Constructor
*/
KBgEngineFIBS(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
KBgEngineFIBS(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
/**
* Destructor

@ -71,10 +71,10 @@ public:
/*
* Constructor
*/
KLBT(TQWidget *tqparent, const TQString &text = TQString(), const TQString &player = TQString())
KLBT(TQWidget *parent, const TQString &text = TQString(), const TQString &player = TQString())
: TQListBoxText(text)
{
w = tqparent;
w = parent;
n = new TQString(player);
t = new TQSimpleRichText(text, w->font());
@ -189,8 +189,8 @@ public:
/*
* Constructor of the chat window.
*/
KBgChat::KBgChat(TQWidget *tqparent, const char *name)
: KChat(tqparent, false)
KBgChat::KBgChat(TQWidget *parent, const char *name)
: KChat(parent, false)
{
d = new KBgChatPrivate();
KActionCollection* actions = new KActionCollection(this);

@ -62,7 +62,7 @@ public:
/**
* Constructor
*/
KBgChat(TQWidget *tqparent = 0, const char *name = 0);
KBgChat(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor

@ -79,7 +79,7 @@ public:
/*
* Constructor
*/
KFibsPlayerListLVI(KFibsPlayerList *tqparent) : KListViewItem(tqparent) { _plist = tqparent; }
KFibsPlayerListLVI(KFibsPlayerList *parent) : KListViewItem(parent) { _plist = parent; }
/*
* Destructor
@ -200,8 +200,8 @@ public:
/*
* Construct the playerlist and do some initial setup
*/
KFibsPlayerList::KFibsPlayerList(TQWidget *tqparent, const char *name)
: KListView(tqparent, name)
KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name)
: KListView(parent, name)
{
d = new KFibsPlayerListPrivate();
KActionCollection* actions = new KActionCollection(this);

@ -64,7 +64,7 @@ public:
/**
* Constructor
*/
KFibsPlayerList(TQWidget *tqparent = 0, const char *name = 0);
KFibsPlayerList(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor

@ -33,8 +33,8 @@
/*
* Constructor initializes the TQObject
*/
KBgEngine::KBgEngine(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: TQObject(tqparent, name->local8Bit())
KBgEngine::KBgEngine(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: TQObject(parent, name->local8Bit())
{
menu = pmenu;
cl = -1;

@ -69,7 +69,7 @@ public:
/**
* Constructor
*/
KBgEngine (TQWidget * tqparent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
KBgEngine (TQWidget * parent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
/**
* Destructor

@ -275,7 +275,7 @@ void KBgEngineGNU::newGame()
/*
* If there is a game running we warn the user first
*/
if (gameRunning && (KMessageBox::warningYesNo((TQWidget *)tqparent(),
if (gameRunning && (KMessageBox::warningYesNo((TQWidget *)parent(),
i18n("A game is currently in progress. "
"Starting a new one will terminate it."),
TQString(), i18n("Start New Game"), i18n("Continue Old Game"))
@ -422,8 +422,8 @@ void KBgEngineGNU::saveConfig()
/*
* Constructor
*/
KBgEngineGNU::KBgEngineGNU(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(tqparent, name, pmenu)
KBgEngineGNU::KBgEngineGNU(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(parent, name, pmenu)
{
// obsolete
nameUS = "US";
@ -503,7 +503,7 @@ void KBgEngineGNU::startGNU()
resAction->setEnabled(false);
if (!gnubg.start(KProcess::NotifyOnExit, KProcess::All))
KMessageBox::information((TQWidget *)tqparent(),
KMessageBox::information((TQWidget *)parent(),
i18n("Could not start the GNU Backgammon process.\n"
"Make sure the program is in your PATH and is "
"called \"gnubg\".\n"

@ -51,7 +51,7 @@ public:
/*
* Constructor and destructor
*/
KBgEngineGNU(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
KBgEngineGNU(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
virtual ~KBgEngineGNU();
/**

@ -31,8 +31,8 @@
/*
* Constructor
*/
KBgGame::KBgGame(int cookie, TQObject *tqparent)
: KGame(cookie, tqparent)
KBgGame::KBgGame(int cookie, TQObject *parent)
: KGame(cookie, parent)
{
// do nothing...
}

@ -46,7 +46,7 @@ public:
enum MsgID {Text, Cmd, MaxMsg};
KBgGame(int cookie = 42, TQObject *tqparent = 0);
KBgGame(int cookie = 42, TQObject *parent = 0);
protected:

@ -51,8 +51,8 @@
/*
* Constructor
*/
KBgEngineNg::KBgEngineNg(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(tqparent, name, pmenu)
KBgEngineNg::KBgEngineNg(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(parent, name, pmenu)
{
// get a new game
initGame();
@ -140,7 +140,7 @@ void KBgEngineNg::setGame()
"65535.");
port_s.setNum(_port);
do {
port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)tqparent());
port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)parent());
if (!ret)
return;
port = port_s.toUShort(&ret);
@ -159,7 +159,7 @@ void KBgEngineNg::setGame()
label = i18n("Type the name of the server you want to connect to:");
host_s = _host;
do {
host_s = KLineEditDlg::getText(label, host_s, &ret, (TQWidget *)tqparent());
host_s = KLineEditDlg::getText(label, host_s, &ret, (TQWidget *)parent());
if (!ret)
return;
} while (host_s.isEmpty());
@ -168,7 +168,7 @@ void KBgEngineNg::setGame()
"number should be between 1024 and 65535.").tqarg(host_s);
port_s.setNum(_port);
do {
port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)tqparent());
port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)parent());
if (!ret)
return;
port = port_s.toUShort(&ret);
@ -546,10 +546,10 @@ void KBgEngineNg::changeName()
while (!_player[i]->isVirtual() && name.isEmpty()) {
if (i == 0)
name = KLineEditDlg::getText(i18n("Type the name of the first player:"),
_name[i], &ok, (TQWidget *)tqparent());
_name[i], &ok, (TQWidget *)parent());
else
name = KLineEditDlg::getText(i18n("Type the name of the second player:"),
_name[i], &ok, (TQWidget *)tqparent());
_name[i], &ok, (TQWidget *)parent());
if (!ok) return;
_player[i]->setName(name);
}

@ -58,7 +58,7 @@ public:
/*
* Constructor and destructor
*/
KBgEngineNg( TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
KBgEngineNg( TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
virtual ~KBgEngineNg();
/**
@ -245,7 +245,7 @@ private:
/**
* Create the i-th player. Legal values for i are 0 and 1. The
* name of the player is taken from @ref _name and the tqparent of
* name of the player is taken from @ref _name and the parent of
* the player is @ref _player. That means that the players are
* automatically deleted.
*/

@ -106,8 +106,8 @@ public:
/*
* Constructor
*/
KBgEngineOffline::KBgEngineOffline(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(tqparent, name, pmenu)
KBgEngineOffline::KBgEngineOffline(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(parent, name, pmenu)
{
d = new KBgEngineOfflinePrivate();
@ -282,7 +282,7 @@ void KBgEngineOffline::newGame()
/*
* If there is a game running we warn the user first
*/
if (d->mGameFlag && (KMessageBox::warningYesNo((TQWidget *)tqparent(),
if (d->mGameFlag && (KMessageBox::warningYesNo((TQWidget *)parent(),
i18n("A game is currently in progress. "
"Starting a new one will terminate it."),
TQString(), i18n("Start New Game"),
@ -397,7 +397,7 @@ bool KBgEngineOffline::queryPlayerName(int w)
}
do {
*name = KLineEditDlg::getText(text, *name, &ret, (TQWidget *)tqparent());
*name = KLineEditDlg::getText(text, *name, &ret, (TQWidget *)parent());
if (!ret) break;
} while (name->isEmpty());
@ -645,7 +645,7 @@ void KBgEngineOffline::cube()
if (d->mRollFlag && d->mGame[0].cube(w) > 0) {
emit allowCommand(Cube, false);
if (KMessageBox::questionYesNo((TQWidget *)tqparent(),
if (KMessageBox::questionYesNo((TQWidget *)parent(),
i18n("%1 has doubled. %2, do you accept the double?").
arg((w == THEM) ? d->mName[1] : d->mName[0]).
arg((w == US) ? d->mName[1] : d->mName[0]),
@ -695,7 +695,7 @@ bool KBgEngineOffline::queryClose()
if (!d->mGameFlag)
return true;
switch (KMessageBox::warningContinueCancel((TQWidget *)tqparent(),
switch (KMessageBox::warningContinueCancel((TQWidget *)parent(),
i18n("In the middle of a game. "
"Really quit?"), TQString(), KStdGuiItem::quit())) {
case KMessageBox::Continue :

@ -56,7 +56,7 @@ public:
/**
* Constructor
*/
KBgEngineOffline(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
KBgEngineOffline(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
/**
* Destructor

@ -248,8 +248,8 @@ void KBgBoardSetup::getSetupPages(KDialogBase *nb)
/*
* Empty constructor calls the board constructor
*/
KBgBoardSetup::KBgBoardSetup(TQWidget *tqparent, const char *name, TQPopupMenu *menu)
: KBgBoard(tqparent, name, menu)
KBgBoardSetup::KBgBoardSetup(TQWidget *parent, const char *name, TQPopupMenu *menu)
: KBgBoard(parent, name, menu)
{
// empty
}
@ -1610,8 +1610,8 @@ KBgBoardField::~KBgBoardField()
* This is the constructor of the bars. It calls the base class' constructor
* and defines the TQWhatsThis string.
*/
KBgBoardBar::KBgBoardBar(TQWidget * tqparent, int numID)
: KBgBoardCell(tqparent, numID)
KBgBoardBar::KBgBoardBar(TQWidget * parent, int numID)
: KBgBoardCell(parent, numID)
{
TQWhatsThis::add(this, i18n("This is the bar of the backgammon board.\n\n"
"Checkers that have been kicked from the board are put "
@ -1627,8 +1627,8 @@ KBgBoardBar::KBgBoardBar(TQWidget * tqparent, int numID)
* This is the constructor of regular fields. It calls the base class' constructor
* and defines the TQWhatsThis string.
*/
KBgBoardField::KBgBoardField(TQWidget * tqparent, int numID)
: KBgBoardCell(tqparent, numID)
KBgBoardField::KBgBoardField(TQWidget * parent, int numID)
: KBgBoardCell(parent, numID)
{
TQWhatsThis::add(this, i18n("This is a regular field of the backgammon board.\n\n"
"Checkers can be placed on this field and if the current state "
@ -1641,8 +1641,8 @@ KBgBoardField::KBgBoardField(TQWidget * tqparent, int numID)
* This is the constructor of the homes. It calls the base class' constructor
* and defines the TQWhatsThis string.
*/
KBgBoardHome::KBgBoardHome(TQWidget * tqparent, int numID)
: KBgBoardCell(tqparent, numID)
KBgBoardHome::KBgBoardHome(TQWidget * parent, int numID)
: KBgBoardCell(parent, numID)
{
TQWhatsThis::add(this, i18n("This part of the backgammon board is the home.\n\n"
"Depending on the direction of the game, one of the homes "
@ -1734,10 +1734,10 @@ int KBgBoard::getTurn() const
* This is the constructor of the basic cells. It initializes the cell
* to a sane state and connects a signal to the board.
*/
KBgBoardCell::KBgBoardCell(TQWidget * tqparent, int numID)
: TQLabel(tqparent)
KBgBoardCell::KBgBoardCell(TQWidget * parent, int numID)
: TQLabel(parent)
{
board = (KBgBoard *)tqparent;
board = (KBgBoard *)parent;
direction = +1;
color = -1;
@ -1749,7 +1749,7 @@ KBgBoardCell::KBgBoardCell(TQWidget * tqparent, int numID)
mouseButton = Qt::NoButton;
dragInProgress = false;
connect(tqparent, TQT_SIGNAL(finishedUpdate()), this, TQT_SLOT(refresh()));
connect(parent, TQT_SIGNAL(finishedUpdate()), this, TQT_SLOT(refresh()));
}
/*
@ -1854,7 +1854,7 @@ void KBgBoard::updateField(int f, int v)
}
/*
* This function displays the context menu our tqparent may have given us
* This function displays the context menu our parent may have given us
*/
void KBgBoard::showContextMenu()
{
@ -2162,10 +2162,10 @@ void KBgBoardCell::mouseMoveEvent(TQMouseEvent *)
board->drawSimpleChecker(&tmp, 0, 0, pcs, getCheckerDiameter());
tmp.end();
pix.setMask(pix.createHeuristicMask());
TQBitmap tqmask = *(pix.tqmask());
TQBitmap mask = *(pix.mask());
TQBitmap newCursor;
newCursor = pix;
board->replaceCursor(TQCursor(newCursor, tqmask));
board->replaceCursor(TQCursor(newCursor, mask));
if (board->getEditMode())
board->storeTurn(pcs);
getPiece();
@ -2653,7 +2653,7 @@ void KBgBoard::redoMove()
}
/*
* This function performs and undo for the last move and updates the tqparent
* This function performs and undo for the last move and updates the parent
* of the board by calling sendMove() after the undo.
*/
void KBgBoard::undoMove()
@ -2823,8 +2823,8 @@ void KBgBoard::getRollDice(const int w)
* You have to change the status by passing a KBgtqStatus
* object to setState(...) before you can play!
*/
KBgBoard::KBgBoard(TQWidget *tqparent, const char *name, TQPopupMenu *menu)
: TQWidget(tqparent, name)
KBgBoard::KBgBoard(TQWidget *parent, const char *name, TQPopupMenu *menu)
: TQWidget(parent, name)
{
/*
* The following lines set up internal bookkeeping data.
@ -2838,7 +2838,7 @@ KBgBoard::KBgBoard(TQWidget *tqparent, const char *name, TQPopupMenu *menu)
checkerDiam = MINIMUM_CHECKER_SIZE;
/*
* We may be initialized with a popup menu by our tqparent.
* We may be initialized with a popup menu by our parent.
*/
contextMenu = menu;

@ -110,7 +110,7 @@ class KBgBoard : public TQWidget
/**
* Constructor and destructor. Parameter as usual.
*/
KBgBoard(TQWidget *tqparent = 0, const char *name = 0,
KBgBoard(TQWidget *parent = 0, const char *name = 0,
TQPopupMenu *menu = 0);
virtual ~KBgBoard();
@ -469,7 +469,7 @@ class KBgBoardCell : public TQLabel
/**
* Constructor and destructor
*/
KBgBoardCell(TQWidget * tqparent, int numID);
KBgBoardCell(TQWidget * parent, int numID);
virtual ~KBgBoardCell();
/**
@ -560,7 +560,7 @@ protected:
/**
* the board and the pieces are one unit (none makes
* sense without the other). So the pieces know and access their tqparent.
* sense without the other). So the pieces know and access their parent.
*/
KBgBoard *board;
void checkAndMakeShortMove(TQMouseEvent *e, int m);
@ -635,7 +635,7 @@ class KBgBoardHome : public KBgBoardCell
/**
* Constructor and destructor
*/
KBgBoardHome( TQWidget * tqparent, int numID);
KBgBoardHome( TQWidget * parent, int numID);
virtual ~KBgBoardHome();
/**
@ -698,7 +698,7 @@ class KBgBoardBar : public KBgBoardCell
/**
* Constructor
*/
KBgBoardBar( TQWidget * tqparent, int numID );
KBgBoardBar( TQWidget * parent, int numID );
/**
* Destructor
@ -734,7 +734,7 @@ class KBgBoardField : public KBgBoardCell
/**
* Constructor and destructor
*/
KBgBoardField( TQWidget * tqparent, int numID);
KBgBoardField( TQWidget * parent, int numID);
virtual ~KBgBoardField();
/**
@ -911,7 +911,7 @@ public:
/**
* Constructor
*/
KBgBoardSetup(TQWidget *tqparent = 0, const char *name = 0,
KBgBoardSetup(TQWidget *parent = 0, const char *name = 0,
TQPopupMenu *menu = 0);
/**

@ -36,8 +36,8 @@
/*
* Constructor
*/
KBgTextView::KBgTextView(TQWidget *tqparent, const char *name)
: KTextBrowser(tqparent, name)
KBgTextView::KBgTextView(TQWidget *parent, const char *name)
: KTextBrowser(parent, name)
{
clear();
setLinkUnderline(true);

@ -43,7 +43,7 @@ public:
/**
* Constructor
*/
KBgTextView(TQWidget *tqparent = 0, const char *name = 0);
KBgTextView(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor

@ -20,10 +20,10 @@
#include "kbattlefield.h"
KBattleField::KBattleField(TQWidget *tqparent, bool grid) : KGridWidget(tqparent, grid)
KBattleField::KBattleField(TQWidget *parent, bool grid) : KGridWidget(parent, grid)
{
m_parent = tqparent;
m_width = tqparent->width();
m_parent = parent;
m_width = parent->width();
m_canDraw = true;
m_ownfieldx = 10;
@ -91,7 +91,7 @@ void KBattleField::drawOwnField()
if(!m_canDraw)
return;
KBattleshipWindow *window = static_cast<KBattleshipWindow *>(TQT_TQWIDGET(m_parent->tqparent()->tqparent()));
KBattleshipWindow *window = static_cast<KBattleshipWindow *>(TQT_TQWIDGET(m_parent->parent()->parent()));
KShip *ship = 0;
int data;
@ -151,7 +151,7 @@ void KBattleField::drawEnemyField()
if(!m_canDraw)
return;
KBattleshipWindow *window = static_cast<KBattleshipWindow *>(TQT_TQWIDGET(m_parent->tqparent()->tqparent()));
KBattleshipWindow *window = static_cast<KBattleshipWindow *>(TQT_TQWIDGET(m_parent->parent()->parent()));
for(int i = 0; i != m_enemyfieldx; i++)
{

@ -27,7 +27,7 @@ class KBattleField : public KGridWidget
{
public:
enum{FREE, WATER, HIT, DEATH, BORDER, SHIP1P1, SHIP2P1, SHIP2P2, SHIP3P1, SHIP3P2, SHIP3P3, SHIP4P1, SHIP4P2, SHIP4P3, SHIP4P4};
KBattleField(TQWidget *tqparent, bool grid);
KBattleField(TQWidget *parent, bool grid);
void clearOwnField();
void clearEnemyField();

@ -22,8 +22,8 @@
#include "kbattleship.h"
#include "kbattleshipview.moc"
KBattleshipView::KBattleshipView(TQWidget *tqparent, const char *name, bool draw)
: TQWidget(tqparent, name, WResizeNoErase), m_drawGrid(draw)
KBattleshipView::KBattleshipView(TQWidget *parent, const char *name, bool draw)
: TQWidget(parent, name, WResizeNoErase), m_drawGrid(draw)
{
setFixedSize(20 * 32 + 30, 10 * 32 + 20);
setBackgroundMode(NoBackground);

@ -35,7 +35,7 @@ class KBattleshipView : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
KBattleshipView(TQWidget *tqparent = 0, const char *name = 0, bool draw = false);
KBattleshipView(TQWidget *parent = 0, const char *name = 0, bool draw = false);
~KBattleshipView();
KBattleField *field() { return m_battlefield; }

@ -25,7 +25,7 @@
#define MAX_CHILD_NUM 4
KBChooserStrategy::KBChooserStrategy(KBStrategy *tqparent) : KBStrategy(tqparent)
KBChooserStrategy::KBChooserStrategy(KBStrategy *parent) : KBStrategy(parent)
{
m_destroyer = new KBDestroyShipStrategy(this);
m_destroying = false;

@ -25,7 +25,7 @@
class KBChooserStrategy : public KBStrategy
{
public:
KBChooserStrategy(KBStrategy *tqparent = 0);
KBChooserStrategy(KBStrategy *parent = 0);
virtual ~KBChooserStrategy();
virtual void init(KBattleField *field, const TQRect &field_rect);

@ -17,7 +17,7 @@
#include "kbdestroyshipstrategy.h"
KBDestroyShipStrategy::KBDestroyShipStrategy(KBStrategy *tqparent) : KBStrategy(tqparent)
KBDestroyShipStrategy::KBDestroyShipStrategy(KBStrategy *parent) : KBStrategy(parent)
{
m_working = false;
}

@ -23,7 +23,7 @@
class KBDestroyShipStrategy : public KBStrategy
{
public:
KBDestroyShipStrategy(KBStrategy *tqparent = 0);
KBDestroyShipStrategy(KBStrategy *parent = 0);
virtual void init(KBattleField *field, const TQRect &field_rect);
virtual const TQPoint nextShot();

@ -16,7 +16,7 @@
#include "kbdiagonalshotstrategy.h"
KBDiagonalShotStrategy::KBDiagonalShotStrategy(KBStrategy *tqparent) : KBStrategy(tqparent)
KBDiagonalShotStrategy::KBDiagonalShotStrategy(KBStrategy *parent) : KBStrategy(parent)
{
m_column = 0;
m_row = 0;

@ -23,7 +23,7 @@ class KBDiagonalShotStrategy : public KBStrategy
{
public:
enum Direction {LEFTUP, LEFTDOWN, RIGHTUP, RIGHTDOWN};
KBDiagonalShotStrategy(KBStrategy *tqparent = 0);
KBDiagonalShotStrategy(KBStrategy *parent = 0);
virtual const TQPoint nextShot();
virtual bool hasMoreShots();

@ -17,11 +17,11 @@
#include <krandomsequence.h>
#include "kbdiagonalwrapstrategy.h"
KBDiagonalWrapStrategy::KBDiagonalWrapStrategy(KBStrategy *tqparent) : KBStrategy(tqparent)
KBDiagonalWrapStrategy::KBDiagonalWrapStrategy(KBStrategy *parent) : KBStrategy(parent)
{
m_child = new KBDiagonalShotStrategy(this);
if(tqparent == 0)
if(parent == 0)
{
m_destroyer = new KBDestroyShipStrategy(this);
m_destroying = false;

@ -24,7 +24,7 @@
class KBDiagonalWrapStrategy : public KBStrategy
{
public:
KBDiagonalWrapStrategy(KBStrategy *tqparent = 0);
KBDiagonalWrapStrategy(KBStrategy *parent = 0);
virtual ~KBDiagonalWrapStrategy();
virtual void init(KBattleField *field, const TQRect &field_rect);

@ -17,10 +17,10 @@
#include <krandomsequence.h>
#include "kbhorizontalstepstrategy.h"
KBHorizontalStepStrategy::KBHorizontalStepStrategy(KBStrategy *tqparent) : KBStrategy(tqparent)
KBHorizontalStepStrategy::KBHorizontalStepStrategy(KBStrategy *parent) : KBStrategy(parent)
{
m_child = 0;
if(tqparent == 0) // only the master destroys ships
if(parent == 0) // only the master destroys ships
{
m_destroyer = new KBDestroyShipStrategy(this);
m_destroying = false;

@ -23,7 +23,7 @@
class KBHorizontalStepStrategy : public KBStrategy
{
public:
KBHorizontalStepStrategy(KBStrategy *tqparent = 0);
KBHorizontalStepStrategy(KBStrategy *parent = 0);
virtual ~KBHorizontalStepStrategy();
virtual void init(KBattleField *field, const TQRect &field_rect);

@ -16,7 +16,7 @@
#include "kbrandomshotstrategy.h"
KBRandomShotStrategy::KBRandomShotStrategy(KBStrategy *tqparent) : KBStrategy(tqparent)
KBRandomShotStrategy::KBRandomShotStrategy(KBStrategy *parent) : KBStrategy(parent)
{
m_destroyer = new KBDestroyShipStrategy(this);
m_destroying = false;

@ -25,7 +25,7 @@
class KBRandomShotStrategy : public KBStrategy
{
public:
KBRandomShotStrategy(KBStrategy *tqparent = 0);
KBRandomShotStrategy(KBStrategy *parent = 0);
virtual ~KBRandomShotStrategy();
virtual void init(KBattleField *field, const TQRect &field_rect);

@ -17,9 +17,9 @@
#include "kbstrategy.h"
KBStrategy::KBStrategy(KBStrategy *tqparent)
KBStrategy::KBStrategy(KBStrategy *parent)
{
m_parent = tqparent;
m_parent = parent;
m_viableShots = 0;
}

@ -26,7 +26,7 @@ class KBStrategy
{
public:
enum{FREE, SHOT, SHIP};
KBStrategy(KBStrategy *tqparent = 0);
KBStrategy(KBStrategy *parent = 0);
virtual ~KBStrategy();
virtual const TQPoint nextShot() = 0;

@ -18,11 +18,11 @@
#include <krandomsequence.h>
#include "kbverticalstepstrategy.h"
KBVerticalStepStrategy::KBVerticalStepStrategy(KBStrategy *tqparent) : KBStrategy(tqparent)
KBVerticalStepStrategy::KBVerticalStepStrategy(KBStrategy *parent) : KBStrategy(parent)
{
m_child = 0;
if(tqparent == 0) // only the master destroys ships
if(parent == 0) // only the master destroys ships
{
m_destroyer = new KBDestroyShipStrategy(this);
m_destroying = false;

@ -24,7 +24,7 @@
class KBVerticalStepStrategy : public KBStrategy
{
public:
KBVerticalStepStrategy(KBStrategy *tqparent = 0);
KBVerticalStepStrategy(KBStrategy *parent = 0);
virtual ~KBVerticalStepStrategy();
virtual void init(KBattleField *field, const TQRect &field_rect);

@ -18,7 +18,7 @@
#include <kapplication.h>
#include "kchatwidget.moc"
KChatWidget::KChatWidget(TQWidget *tqparent, const char *name) : chatDlg(tqparent, name)
KChatWidget::KChatWidget(TQWidget *parent, const char *name) : chatDlg(parent, name)
{
connect(sendBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotComputeMessage()));
connect(commentEdit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotComputeMessage()));

@ -29,7 +29,7 @@ class KChatWidget : public chatDlg
Q_OBJECT
TQ_OBJECT
public:
KChatWidget(TQWidget *tqparent = 0, const char *name = 0);
KChatWidget(TQWidget *parent = 0, const char *name = 0);
void clear();
void setNickname(const TQString &nickname) { m_currentNickname = nickname; }

@ -25,8 +25,8 @@
#include "kbattleshipserver.h" // for BATTLESHIP_SERVICE
#include "kclientdialog.moc"
KClientDialog::KClientDialog(TQWidget *tqparent, const char *name)
: KDialogBase(Plain, i18n("Connect to Server"), Ok|Cancel, Ok, tqparent, name, true, false, KGuiItem(i18n("&Connect")))
KClientDialog::KClientDialog(TQWidget *parent, const char *name)
: KDialogBase(Plain, i18n("Connect to Server"), Ok|Cancel, Ok, parent, name, true, false, KGuiItem(i18n("&Connect")))
{
TQFrame* page = plainPage();
TQGridLayout* pageLayout = new TQGridLayout(page, 1, 1, 0, 0);

@ -34,7 +34,7 @@ class KClientDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
KClientDialog(TQWidget *tqparent = 0, const char *name = 0);
KClientDialog(TQWidget *parent = 0, const char *name = 0);
~KClientDialog();
TQString port() const;

@ -26,10 +26,10 @@
#include "kbattlefield.h"
#include "kgridwidget.h"
KGridWidget::KGridWidget(TQWidget *tqparent, bool draw) : m_drawGrid(draw)
KGridWidget::KGridWidget(TQWidget *parent, bool draw) : m_drawGrid(draw)
{
m_doubleBuffer = new TQPixmap(tqparent->width(), tqparent->height());
m_parent = tqparent;
m_doubleBuffer = new TQPixmap(parent->width(), parent->height());
m_parent = parent;
cleanBuffer();
cacheImages();

@ -23,7 +23,7 @@
class KGridWidget
{
public:
KGridWidget(TQWidget *tqparent, bool draw);
KGridWidget(TQWidget *parent, bool draw);
~KGridWidget();
void enableGrid() { m_drawGrid = true; }

@ -19,7 +19,7 @@
extern const char *protocolVersion;
KonnectionHandling::KonnectionHandling(TQWidget *tqparent, KBattleshipServer *server) : TQObject(tqparent)
KonnectionHandling::KonnectionHandling(TQWidget *parent, KBattleshipServer *server) : TQObject(parent)
{
m_kbserver = server;
m_kbclient = 0;
@ -31,7 +31,7 @@ KonnectionHandling::KonnectionHandling(TQWidget *tqparent, KBattleshipServer *se
connect(server, TQT_SIGNAL(sigMessageSent(KMessage *)), this, TQT_SLOT(slotMessageSent(KMessage *)));
}
KonnectionHandling::KonnectionHandling(TQWidget *tqparent, KBattleshipClient *client) : TQObject(tqparent)
KonnectionHandling::KonnectionHandling(TQWidget *parent, KBattleshipClient *client) : TQObject(parent)
{
m_kbclient = client;
m_kbserver = 0;

@ -33,8 +33,8 @@ class KonnectionHandling : public TQObject
TQ_OBJECT
public:
enum{SERVER, CLIENT};
KonnectionHandling(TQWidget *tqparent, KBattleshipServer *server);
KonnectionHandling(TQWidget *tqparent, KBattleshipClient *client);
KonnectionHandling(TQWidget *parent, KBattleshipServer *server);
KonnectionHandling(TQWidget *parent, KBattleshipClient *client);
int type() { return m_type; }

@ -21,8 +21,8 @@
#include "kserverdialog.h"
KServerDialog::KServerDialog(TQWidget *tqparent, const char *name) :
KDialogBase(Plain, i18n("Start Server"), Ok|Cancel, Ok, tqparent, name, true, false, KGuiItem(i18n("&Start")))
KServerDialog::KServerDialog(TQWidget *parent, const char *name) :
KDialogBase(Plain, i18n("Start Server"), Ok|Cancel, Ok, parent, name, true, false, KGuiItem(i18n("&Start")))
{
TQFrame* page = plainPage();
TQGridLayout* pageLayout = new TQGridLayout(page, 1, 1, 0, 0);

@ -33,7 +33,7 @@ class KServerDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
KServerDialog(TQWidget *tqparent = 0, const char *name = 0);
KServerDialog(TQWidget *parent = 0, const char *name = 0);
TQString port() const;
TQString nickname() const;

@ -19,7 +19,7 @@
#include <tqlabel.h>
#include "kstatdialog.moc"
KStatDialog::KStatDialog(TQWidget *tqparent, const char *name) : statDlg(tqparent, name)
KStatDialog::KStatDialog(TQWidget *parent, const char *name) : statDlg(parent, name)
{
}

@ -25,7 +25,7 @@ class KStatDialog : public statDlg
Q_OBJECT
TQ_OBJECT
public:
KStatDialog(TQWidget *tqparent = 0, const char *name = 0);
KStatDialog(TQWidget *parent = 0, const char *name = 0);
void setShot();
void setShot(int shot);

@ -174,7 +174,7 @@ KBBGame::~KBBGame()
kConf->writeEntry( "tutorial", (int) tutorial );
delete gameBoard;
// All the rest has "this" for tqparent so it doesn't need to be deleted.
// All the rest has "this" for parent so it doesn't need to be deleted.
}

@ -22,8 +22,8 @@
Constructs a KBBGraphic widget.
*/
KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* tqparent, const char* name )
: TQWidget( tqparent, name )
KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* parent, const char* name )
: TQWidget( parent, name )
{
int i;

@ -55,7 +55,7 @@ class KBBGraphic : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
KBBGraphic( TQPixmap** p=0, TQWidget* tqparent=0, const char* name=0 );
KBBGraphic( TQPixmap** p=0, TQWidget* parent=0, const char* name=0 );
~KBBGraphic();
friend class KBBGame;

@ -136,8 +136,8 @@ bool Ball::collide( double dx, double dy )
/*************************************************************************/
Wall::Wall( JezzField *field, int x, int y, Direction dir, int tile, TQObject *tqparent, const char *name )
: TQObject( tqparent, name ), m_dir( dir ), m_field( field ), m_startX( x ), m_startY( y ),
Wall::Wall( JezzField *field, int x, int y, Direction dir, int tile, TQObject *parent, const char *name )
: TQObject( parent, name ), m_dir( dir ), m_field( field ), m_startX( x ), m_startY( y ),
m_tile( tile ), m_delay( MS2TICKS(WALL_DELAY)/2 ), m_active( true )
{
//kdDebug(12008) << "Wall::Wall" << endl;
@ -236,8 +236,8 @@ void Wall::fill( bool black )
/*************************************************************************/
JezzField::JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* tqparent, const char* name )
: TQCanvas( tqparent, name ), m_tiles( tiles )
JezzField::JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* parent, const char* name )
: TQCanvas( parent, name ), m_tiles( tiles )
{
setPixmaps( tiles, background );
}
@ -314,8 +314,8 @@ void JezzField::setPixmaps( const TQPixmap &tiles, const TQPixmap &background )
/*************************************************************************/
JezzView::JezzView(TQCanvas* viewing, TQWidget* tqparent, const char* name, WFlags f)
: TQCanvasView( viewing, tqparent, name, f ), m_vertical( false )
JezzView::JezzView(TQCanvas* viewing, TQWidget* parent, const char* name, WFlags f)
: TQCanvasView( viewing, parent, name, f ), m_vertical( false )
{
setResizePolicy( AutoOne );
setHScrollBarMode( AlwaysOff );
@ -340,8 +340,8 @@ void JezzView::viewportMouseReleaseEvent( TQMouseEvent *ev )
/*************************************************************************/
JezzGame::JezzGame( const TQPixmap &background, int ballNum, TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name ), m_wall1( 0 ), m_wall2( 0 ),
JezzGame::JezzGame( const TQPixmap &background, int ballNum, TQWidget *parent, const char *name )
: TQWidget( parent, name ), m_wall1( 0 ), m_wall2( 0 ),
m_text( 0 ), m_running( false ), m_percent( 0 ), m_pictured( false )
{
TQString path = kapp->dirs()->findResourceDir( "data", "kbounce/pics/ball0000.png" ) + "kbounce/pics/";

@ -58,7 +58,7 @@ public:
enum Direction { Up, Down, Left, Right };
Wall( JezzField *field, int x, int y, Direction dir, int tile,
TQObject *tqparent=0, const char *name=0 );
TQObject *parent=0, const char *name=0 );
void finish();
void fill( bool black );
@ -89,7 +89,7 @@ class JezzField : public TQCanvas
Q_OBJECT
TQ_OBJECT
public:
JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* tqparent = 0, const char* name = 0 );
JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* parent = 0, const char* name = 0 );
void setGameTile( int x, int y, bool black );
void setBackground( const TQPixmap &background );
@ -115,7 +115,7 @@ class JezzView : public TQCanvasView
Q_OBJECT
TQ_OBJECT
public:
JezzView(TQCanvas* viewing=0, TQWidget* tqparent=0, const char* name=0, WFlags f=0);
JezzView(TQCanvas* viewing=0, TQWidget* parent=0, const char* name=0, WFlags f=0);
signals:
void buildWall( int x, int y, bool vertical );
@ -134,7 +134,7 @@ class JezzGame : public TQWidget
TQ_OBJECT
public:
JezzGame( const TQPixmap &background, int ballNum, TQWidget *tqparent=0, const char *name=0 );
JezzGame( const TQPixmap &background, int ballNum, TQWidget *parent=0, const char *name=0 );
~JezzGame();
int percent();

@ -213,8 +213,8 @@ BallPosition::BallPosition(int xp,int yp, Ball* d)
/* Class BallWidget */
BallWidget::BallWidget( int _freq, int bFr, TQWidget *tqparent, const char *name )
: TQWidget(tqparent,name), positions(MAX_POSITION), animations(MAX_ANIMATION)
BallWidget::BallWidget( int _freq, int bFr, TQWidget *parent, const char *name )
: TQWidget(parent,name), positions(MAX_POSITION), animations(MAX_ANIMATION)
{
int i;
@ -421,8 +421,8 @@ void BallWidget::animate()
/* Ball Test */
BallTest::BallTest( TQWidget *tqparent, const char *name )
: BallWidget(10,2,tqparent,name)
BallTest::BallTest( TQWidget *parent, const char *name )
: BallWidget(10,2,parent,name)
{
int w,h;

@ -100,7 +100,7 @@ class BallWidget : public TQWidget
TQ_OBJECT
public:
BallWidget(int _freq, int bFr, TQWidget *tqparent = 0, const char *name = 0);
BallWidget(int _freq, int bFr, TQWidget *parent = 0, const char *name = 0);
~BallWidget();
void createBlending(int, int, Ball* , Ball* );
@ -143,7 +143,7 @@ class BallTest: public BallWidget
Q_OBJECT
TQ_OBJECT
public:
BallTest(TQWidget *tqparent=0, const char *name=0 );
BallTest(TQWidget *parent=0, const char *name=0 );
protected:
void mousePressEvent( TQMouseEvent * );
void mouseReleaseEvent( TQMouseEvent * );

@ -34,8 +34,8 @@
#include "bitmaps/Arrow6"
#include "bitmaps/Arrow6Mask"
BoardWidget::BoardWidget(Board& b, TQWidget *tqparent, const char *name)
: BallWidget(10,9,tqparent, name), board(b)
BoardWidget::BoardWidget(Board& b, TQWidget *parent, const char *name)
: BallWidget(10,9,parent, name), board(b)
{
pList =0;
gettingMove = false;

@ -18,7 +18,7 @@ class BoardWidget : public BallWidget
TQ_OBJECT
public:
BoardWidget(Board&, TQWidget *tqparent = 0, const char *name = 0);
BoardWidget(Board&, TQWidget *parent = 0, const char *name = 0);
~BoardWidget();
void createPos(int , int , int , Ball*);

@ -19,8 +19,8 @@
#include "Board.h"
#include "EvalScheme.h"
EvalDlgImpl::EvalDlgImpl(TQWidget* tqparent, Board* board)
:EvalDlg(tqparent)
EvalDlgImpl::EvalDlgImpl(TQWidget* parent, Board* board)
:EvalDlg(parent)
{
_board = board;
_origScheme = board->evalScheme();

@ -17,7 +17,7 @@ class EvalDlgImpl: public EvalDlg
TQ_OBJECT
public:
EvalDlgImpl(TQWidget* tqparent, Board* board);
EvalDlgImpl(TQWidget* parent, Board* board);
~EvalDlgImpl();
EvalScheme* evalScheme() { return _scheme; }

@ -9,8 +9,8 @@
using namespace KGrid2D;
FEBoard::FEBoard(bool graphic, TQWidget *tqparent)
: Board(graphic, new GiftPool(tqparent), tqparent),
FEBoard::FEBoard(bool graphic, TQWidget *parent)
: Board(graphic, new GiftPool(parent), parent),
_field(matrix().width(), matrix().height()), _chainedPuyos(4)
{
init();

@ -9,7 +9,7 @@ class FEBoard : public Board
Q_OBJECT
TQ_OBJECT
public:
FEBoard(bool graphic, TQWidget *tqparent);
FEBoard(bool graphic, TQWidget *parent);
void copy(const GenericTetris &);
void start(const GTInitData &);

@ -10,8 +10,8 @@
#include "board.h"
FEField::FEField(TQWidget *tqparent)
: Field(tqparent)
FEField::FEField(TQWidget *parent)
: Field(parent)
{
Board *b = static_cast<Board *>(board);
TQWhatsThis::add(b->giftPool(), i18n("Display the amount of foul eggs sent by your opponent."));

@ -10,7 +10,7 @@ class FEField : public Field
Q_OBJECT
TQ_OBJECT
public:
FEField(TQWidget *tqparent);
FEField(TQWidget *parent);
private slots:
virtual void removedUpdated();

@ -65,9 +65,9 @@ FEFactory::FEFactory()
: CommonFactory(MAIN_DATA, BASE_BOARD_INFO, COMMON_BOARD_INFO)
{}
BaseInterface *FEFactory::createInterface(TQWidget *tqparent)
BaseInterface *FEFactory::createInterface(TQWidget *parent)
{
return new Interface(MP_GAME_INFO, tqparent);
return new Interface(MP_GAME_INFO, parent);
}

@ -15,11 +15,11 @@ class FEFactory : public CommonFactory
FEFactory();
protected:
virtual BaseBoard *createBoard(bool graphic, TQWidget *tqparent)
{ return new FEBoard(graphic, tqparent); }
virtual BaseField *createField(TQWidget *tqparent)
{ return new FEField(tqparent); }
virtual BaseInterface *createInterface(TQWidget *tqparent);
virtual BaseBoard *createBoard(bool graphic, TQWidget *parent)
{ return new FEBoard(graphic, parent); }
virtual BaseField *createField(TQWidget *parent)
{ return new FEField(parent); }
virtual BaseInterface *createInterface(TQWidget *parent);
virtual AI *createAI() { return new FEAI; }
};

@ -34,8 +34,8 @@
class KGoldrunner;
KGrCanvas::KGrCanvas (TQWidget * tqparent, const char *name)
: TQCanvasView (0, tqparent, name)
KGrCanvas::KGrCanvas (TQWidget * parent, const char *name)
: TQCanvasView (0, parent, name)
{
setBackgroundMode (NoBackground);
m = new TQCursor (); // For handling the mouse.

@ -33,7 +33,7 @@ class KGrCanvas : public TQCanvasView
Q_OBJECT
TQ_OBJECT
public:
KGrCanvas (TQWidget * tqparent = 0, const char *name = 0);
KGrCanvas (TQWidget * parent = 0, const char *name = 0);
virtual ~KGrCanvas();
void changeLandscape (const TQString & name);

@ -29,16 +29,16 @@
#ifdef KGR_PORTABLE
KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex,
TQPtrList<KGrCollection> & gamesList, KGrGame * theGame,
TQWidget * tqparent, const char * name)
: TQDialog (tqparent, name, TRUE,
TQWidget * parent, const char * name)
: TQDialog (parent, name, TRUE,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title)
#else
KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex,
TQPtrList<KGrCollection> & gamesList, KGrGame * theGame,
TQWidget * tqparent, const char * name)
TQWidget * parent, const char * name)
: KDialogBase (KDialogBase::Plain, i18n("Select Game"),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help,
KDialogBase::Ok, tqparent, name)
KDialogBase::Ok, parent, name)
#endif
{
slAction = action;
@ -47,7 +47,7 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex,
collections = gamesList;
game = theGame;
collection = collections.at(defaultGame);
slParent = tqparent;
slParent = parent;
#ifdef KGR_PORTABLE
int margin = 10;
@ -117,7 +117,7 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex,
grid->addMultiCellWidget (thumbNail, 1, 3, 2, 2);
// Set thumbnail cell size to about 1/5 of game cell size.
int cellSize = tqparent->width() / (5 * (FIELDWIDTH + 4));
int cellSize = parent->width() / (5 * (FIELDWIDTH + 4));
thumbNail-> setFixedWidth ((FIELDWIDTH * cellSize) + 2);
thumbNail-> setFixedHeight ((FIELDHEIGHT * cellSize) + 2);
@ -130,10 +130,10 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex,
OK = new TQPushButton (i18n("&OK"), buttons);
CANCEL = new TQPushButton (i18n("&Cancel"), buttons);
TQPoint p = tqparent->mapToGlobal (TQPoint (0,0));
TQPoint p = parent->mapToGlobal (TQPoint (0,0));
// Base the tqgeometry of the dialog box on the playing area.
int cell = tqparent->width() / (FIELDWIDTH + 4);
int cell = parent->width() / (FIELDWIDTH + 4);
dad-> move (p.x()+2*cell, p.y()+2*cell);
dad-> setMinimumSize ((FIELDWIDTH*cell/2), (FIELDHEIGHT-1)*cell);
@ -486,15 +486,15 @@ void KGrSLDialog::slotHelp ()
#ifdef KGR_PORTABLE
KGrNHDialog::KGrNHDialog(const TQString & levelName, const TQString & levelHint,
TQWidget * tqparent, const char * name)
: TQDialog (tqparent, name, TRUE,
TQWidget * parent, const char * name)
: TQDialog (parent, name, TRUE,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title)
#else
KGrNHDialog::KGrNHDialog(const TQString & levelName, const TQString & levelHint,
TQWidget * tqparent, const char * name)
TQWidget * parent, const char * name)
: KDialogBase (KDialogBase::Plain, i18n("Edit Name & Hint"),
KDialogBase::Ok | KDialogBase::Cancel,
KDialogBase::Ok, tqparent, name)
KDialogBase::Ok, parent, name)
#endif
{
#ifdef KGR_PORTABLE
@ -538,8 +538,8 @@ KGrNHDialog::KGrNHDialog(const TQString & levelName, const TQString & levelHint,
#endif
// Base the tqgeometry of the text box on the playing area.
TQPoint p = tqparent->mapToGlobal (TQPoint (0,0));
int c = tqparent->width() / (FIELDWIDTH + 4);
TQPoint p = parent->mapToGlobal (TQPoint (0,0));
int c = parent->width() / (FIELDWIDTH + 4);
dad-> move (p.x()+4*c, p.y()+4*c);
mle-> setMinimumSize ((FIELDWIDTH*c/2), (FIELDHEIGHT/2)*c);
@ -573,16 +573,16 @@ KGrNHDialog::~KGrNHDialog()
#ifdef KGR_PORTABLE
KGrECDialog::KGrECDialog (int action, int collnIndex,
TQPtrList<KGrCollection> & gamesList,
TQWidget * tqparent, const char * name)
: TQDialog (tqparent, name, TRUE,
TQWidget * parent, const char * name)
: TQDialog (parent, name, TRUE,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title)
#else
KGrECDialog::KGrECDialog (int action, int collnIndex,
TQPtrList<KGrCollection> & gamesList,
TQWidget * tqparent, const char * name)
TQWidget * parent, const char * name)
: KDialogBase (KDialogBase::Plain, i18n("Edit Game Info"),
KDialogBase::Ok | KDialogBase::Cancel,
KDialogBase::Ok, tqparent, name)
KDialogBase::Ok, parent, name)
#endif
{
collections = gamesList;
@ -640,10 +640,10 @@ KGrECDialog::KGrECDialog (int action, int collnIndex,
OK = new TQPushButton (i18n("&OK"), buttons);
CANCEL = new TQPushButton (i18n("&Cancel"), buttons);
TQPoint p = tqparent->mapToGlobal (TQPoint (0,0));
TQPoint p = parent->mapToGlobal (TQPoint (0,0));
// Base the tqgeometry of the dialog box on the playing area.
int cell = tqparent->width() / (FIELDWIDTH + 4);
int cell = parent->width() / (FIELDWIDTH + 4);
dad-> move (p.x()+2*cell, p.y()+2*cell);
dad-> setMinimumSize ((FIELDWIDTH*cell/2), (FIELDHEIGHT-1)*cell);
#endif
@ -750,16 +750,16 @@ void KGrECDialog::ecSetTrad () {ecSetRules ('T');}
#ifdef KGR_PORTABLE
KGrLGDialog::KGrLGDialog (TQFile * savedGames,
TQPtrList<KGrCollection> & collections,
TQWidget * tqparent, const char * name)
: TQDialog (tqparent, name, TRUE,
TQWidget * parent, const char * name)
: TQDialog (parent, name, TRUE,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title)
#else
KGrLGDialog::KGrLGDialog (TQFile * savedGames,
TQPtrList<KGrCollection> & collections,
TQWidget * tqparent, const char * name)
TQWidget * parent, const char * name)
: KDialogBase (KDialogBase::Plain, i18n("Select Saved Game"),
KDialogBase::Ok | KDialogBase::Cancel,
KDialogBase::Ok, tqparent, name)
KDialogBase::Ok, parent, name)
#endif
{
#ifdef KGR_PORTABLE
@ -803,8 +803,8 @@ KGrLGDialog::KGrLGDialog (TQFile * savedGames,
dad-> setCaption (i18n("Select Saved Game"));
// Base the tqgeometry of the list box on the playing area.
TQPoint p = tqparent->mapToGlobal (TQPoint (0,0));
int c = tqparent->width() / (FIELDWIDTH + 4);
TQPoint p = parent->mapToGlobal (TQPoint (0,0));
int c = parent->width() / (FIELDWIDTH + 4);
dad-> move (p.x()+2*c, p.y()+2*c);
lgList-> setMinimumHeight ((FIELDHEIGHT/2)*c);
OK-> setMaximumWidth (4*c);
@ -858,26 +858,26 @@ void KGrLGDialog::lgSelect (int n)
*********************** CENTRALISED MESSAGE FUNCTIONS ************************
*******************************************************************************/
void KGrMessage::information (TQWidget * tqparent, const TQString &caption, const TQString &text)
void KGrMessage::information (TQWidget * parent, const TQString &caption, const TQString &text)
{
#ifdef KGR_PORTABLE
// Force TQt to do word-wrapping (but it ignores "\n" line-breaks).
TQMessageBox::information (tqparent, caption,
TQMessageBox::information (parent, caption,
"<qt>" + text + "</qt>");
#else
// KDE does word-wrapping and will observe "\n" line-breaks.
KMessageBox::information (tqparent, text, caption);
KMessageBox::information (parent, text, caption);
#endif
}
int KGrMessage::warning (TQWidget * tqparent, TQString caption, TQString text,
int KGrMessage::warning (TQWidget * parent, TQString caption, TQString text,
TQString label0, TQString label1, TQString label2)
{
int ans = 0;
#ifdef KGR_PORTABLE
// Display a box with 2 or 3 buttons, depending on if label2 is empty or not.
// Force TQt to do word-wrapping (but it ignores "\n" line-breaks).
ans = TQMessageBox::warning (tqparent, caption,
ans = TQMessageBox::warning (parent, caption,
"<qt>" + text + "</qt>",
label0, label1, label2,
0, (label2.isEmpty()) ? 1 : 2);
@ -885,13 +885,13 @@ int KGrMessage::warning (TQWidget * tqparent, TQString caption, TQString text,
// KDE does word-wrapping and will observe "\n" line-breaks.
if (label2.isEmpty()) {
// Display a box with 2 buttons.
ans = KMessageBox::questionYesNo (tqparent, text, caption,
ans = KMessageBox::questionYesNo (parent, text, caption,
label0, label1);
ans = (ans == KMessageBox::Yes) ? 0 : 1;
}
else {
// Display a box with 3 buttons.
ans = KMessageBox::questionYesNoCancel (tqparent, text, caption,
ans = KMessageBox::questionYesNoCancel (parent, text, caption,
label0, label1);
if (ans == KMessageBox::Cancel)
ans = 2;
@ -906,12 +906,12 @@ int KGrMessage::warning (TQWidget * tqparent, TQString caption, TQString text,
/********************** WORD-WRAPPED MESSAGE BOX ************************/
/******************************************************************************/
void KGrMessage::wrapped (TQWidget * tqparent, TQString title, TQString contents)
void KGrMessage::wrapped (TQWidget * parent, TQString title, TQString contents)
{
#ifndef KGR_PORTABLE
KMessageBox::information (tqparent, contents, title);
KMessageBox::information (parent, contents, title);
#else
TQDialog * mm = new TQDialog (tqparent, "wrappedMessage", TRUE,
TQDialog * mm = new TQDialog (parent, "wrappedMessage", TRUE,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title);
int margin = 10;
@ -943,8 +943,8 @@ void KGrMessage::wrapped (TQWidget * tqparent, TQString title, TQString contents
mm-> setCaption (title);
// Base the tqgeometry of the text box on the playing area.
TQPoint p = tqparent->mapToGlobal (TQPoint (0,0));
int c = tqparent->width() / (FIELDWIDTH + 4);
TQPoint p = parent->mapToGlobal (TQPoint (0,0));
int c = parent->width() / (FIELDWIDTH + 4);
mm-> move (p.x()+4*c, p.y()+4*c);
mle-> setMinimumSize ((FIELDWIDTH*c/2), (FIELDHEIGHT/2)*c);
OK-> setMaximumWidth (3*c);

@ -62,7 +62,7 @@ Q_OBJECT
public:
KGrSLDialog (int action, int requestedLevel, int collnIndex,
TQPtrList<KGrCollection> & gamesList, KGrGame * theGame,
TQWidget * tqparent = 0, const char *name = 0);
TQWidget * parent = 0, const char *name = 0);
~KGrSLDialog();
int selectedLevel() {return (number->value());}
@ -117,7 +117,7 @@ Q_OBJECT
TQ_OBJECT
public:
KGrNHDialog (const TQString & levelName, const TQString & levelHint,
TQWidget * tqparent = 0, const char * name = 0);
TQWidget * parent = 0, const char * name = 0);
~KGrNHDialog();
TQString getName() {return (nhName->text());}
@ -143,7 +143,7 @@ Q_OBJECT
public:
KGrECDialog (int action, int collnIndex,
TQPtrList<KGrCollection> & gamesList,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
~KGrECDialog();
TQString getName() {return (ecName->text());}
@ -195,7 +195,7 @@ Q_OBJECT
TQ_OBJECT
public:
KGrLGDialog (TQFile * savedGames, TQPtrList<KGrCollection> & collections,
TQWidget * tqparent, const char * name);
TQWidget * parent, const char * name);
TQString getCurrentText() {return (lgList->currentText());}
private slots:
@ -213,10 +213,10 @@ private:
class KGrMessage : public TQDialog
{
public:
static void information (TQWidget * tqparent, const TQString &caption, const TQString &text);
static int warning (TQWidget * tqparent, TQString caption, TQString text,
static void information (TQWidget * parent, const TQString &caption, const TQString &text);
static int warning (TQWidget * parent, TQString caption, TQString text,
TQString label0, TQString label1, TQString label2 = "");
static void wrapped (TQWidget * tqparent, TQString caption, TQString text);
static void wrapped (TQWidget * parent, TQString caption, TQString text);
};
#endif

@ -2226,10 +2226,10 @@ bool KGrGame::ownerOK (Owner o)
/********************** CLASS TO DISPLAY THUMBNAIL ***********************/
/******************************************************************************/
KGrThumbNail::KGrThumbNail (TQWidget * tqparent, const char * name)
: TQFrame (tqparent, name)
KGrThumbNail::KGrThumbNail (TQWidget * parent, const char * name)
: TQFrame (parent, name)
{
// Let the tqparent do all the work. We need a class here so that
// Let the parent do all the work. We need a class here so that
// TQFrame::drawContents (TQPainter *) can be re-implemented and
// the thumbnail can be automatically re-painted when required.
}
@ -2588,12 +2588,12 @@ bool KGrGame::saveCollections (Owner o)
/********************** WORD-WRAPPED MESSAGE BOX ************************/
/******************************************************************************/
void KGrGame::myMessage (TQWidget * tqparent, TQString title, TQString contents)
void KGrGame::myMessage (TQWidget * parent, TQString title, TQString contents)
{
// Halt the game while the message is displayed.
setMessageFreeze (TRUE);
KGrMessage::wrapped (tqparent, title, contents);
KGrMessage::wrapped (parent, title, contents);
// Unfreeze the game, but only if it was previously unfrozen.
setMessageFreeze (FALSE);

@ -265,7 +265,7 @@ private:
/********************** WORD-WRAPPED MESSAGE BOX ************************/
/******************************************************************************/
void myMessage (TQWidget * tqparent, TQString title, TQString contents);
void myMessage (TQWidget * parent, TQString title, TQString contents);
};
/******************************************************************************/
@ -275,7 +275,7 @@ private:
class KGrThumbNail : public TQFrame
{
public:
KGrThumbNail (TQWidget *tqparent = 0, const char *name = 0);
KGrThumbNail (TQWidget *parent = 0, const char *name = 0);
void setFilePath (TQString &, TQLabel *); // Set filepath and name field.
static TQColor backgroundColor;

@ -30,8 +30,8 @@
#include "prefs.h"
KCubeBoxWidget::KCubeBoxWidget(const int d,TQWidget *tqparent,const char *name)
: TQWidget(tqparent,name),
KCubeBoxWidget::KCubeBoxWidget(const int d,TQWidget *parent,const char *name)
: TQWidget(parent,name),
CubeBoxBase<KCubeWidget>(d)
{
init();
@ -39,8 +39,8 @@ KCubeBoxWidget::KCubeBoxWidget(const int d,TQWidget *tqparent,const char *name)
KCubeBoxWidget::KCubeBoxWidget(CubeBox& box,TQWidget *tqparent,const char *name)
:TQWidget(tqparent,name),
KCubeBoxWidget::KCubeBoxWidget(CubeBox& box,TQWidget *parent,const char *name)
:TQWidget(parent,name),
CubeBoxBase<KCubeWidget>(box.dim())
{
init();
@ -57,8 +57,8 @@ KCubeBoxWidget::KCubeBoxWidget(CubeBox& box,TQWidget *tqparent,const char *name)
KCubeBoxWidget::KCubeBoxWidget(const KCubeBoxWidget& box,TQWidget *tqparent,const char *name)
:TQWidget(tqparent,name),
KCubeBoxWidget::KCubeBoxWidget(const KCubeBoxWidget& box,TQWidget *parent,const char *name)
:TQWidget(parent,name),
CubeBoxBase<KCubeWidget>(box.dim())
{
init();

@ -53,10 +53,10 @@ class KCubeBoxWidget : public TQWidget , public CubeBoxBase<KCubeWidget>
Q_OBJECT
TQ_OBJECT
public:
KCubeBoxWidget(const int dim=1,TQWidget *tqparent=0,const char *name=0);
KCubeBoxWidget(const int dim=1,TQWidget *parent=0,const char *name=0);
KCubeBoxWidget(CubeBox& box, TQWidget *tqparent=0,const char *name=0);
KCubeBoxWidget(const KCubeBoxWidget& box,TQWidget *tqparent=0,const char *name=0);
KCubeBoxWidget(CubeBox& box, TQWidget *parent=0,const char *name=0);
KCubeBoxWidget(const KCubeBoxWidget& box,TQWidget *parent=0,const char *name=0);
virtual ~KCubeBoxWidget();
KCubeBoxWidget& operator= (CubeBox& box);

@ -73,9 +73,9 @@ TQPalette KCubeWidget::color(Owner forWhom)
** public functions **
** ****************************************************** */
KCubeWidget::KCubeWidget(TQWidget* tqparent,const char* name
KCubeWidget::KCubeWidget(TQWidget* parent,const char* name
,Owner owner,int value,int max)
: TQFrame(tqparent,name),
: TQFrame(parent,name),
Cube(owner,value,max)
{
setFrameStyle(Panel|Raised);
@ -85,7 +85,7 @@ KCubeWidget::KCubeWidget(TQWidget* tqparent,const char* name
setCoordinates(0,0);
//initialize hintTimer
// will be automatically destroyed by the tqparent
// will be automatically destroyed by the parent
hintTimer = new TQTimer(this);
hintCounter=0;
connect(hintTimer,TQT_SIGNAL(timeout()),TQT_SLOT(hint()));

@ -39,7 +39,7 @@ class KCubeWidget : public TQFrame , public Cube
public:
/** constructs a new KCubeWidget*/
KCubeWidget(TQWidget* tqparent=0,const char* name=0
KCubeWidget(TQWidget* parent=0,const char* name=0
,Owner owner=Cube::Nobody,int value=1,int max=0);
virtual ~KCubeWidget();

@ -26,8 +26,8 @@ void KLBoard::contentsMouseReleaseEvent(TQMouseEvent *e)
}
}
KLBoard::KLBoard(TQWidget *tqparent)
: BaseBoard(true, tqparent),
KLBoard::KLBoard(TQWidget *parent)
: BaseBoard(true, parent),
field(matrix().width(), matrix().height()),
empty(matrix().width()),
blocked(false)

@ -9,7 +9,7 @@ class KLBoard : public BaseBoard
Q_OBJECT
TQ_OBJECT
public:
KLBoard(TQWidget *tqparent);
KLBoard(TQWidget *parent);
void start(const GTInitData &data);

@ -11,8 +11,8 @@
#include "base/board.h"
Field::Field(TQWidget *tqparent)
: TQWidget(tqparent, "field"), BaseField(this)
Field::Field(TQWidget *parent)
: TQWidget(parent, "field"), BaseField(this)
{
KGameLCDList *sc = new KGameLCDList(i18n("Remaining blocks"), this);
showScore = new KGameLCD(3, sc);
@ -37,7 +37,7 @@ Field::Field(TQWidget *tqparent)
connect(board, TQT_SIGNAL(gameOverSignal()), TQT_SLOT(gameOver()));
settingsChanged();
connect(tqparent, TQT_SIGNAL(settingsChanged()), TQT_SLOT(settingsChanged()));
connect(parent, TQT_SIGNAL(settingsChanged()), TQT_SLOT(settingsChanged()));
TQTimer::singleShot(0, this, TQT_SLOT(start()));
}

@ -13,7 +13,7 @@ class Field : public TQWidget, public BaseField, public BaseInterface
Q_OBJECT
TQ_OBJECT
public:
Field(TQWidget *tqparent);
Field(TQWidget *parent);
private slots:
void scoreUpdatedSlot() { scoreUpdated(); }

@ -13,10 +13,10 @@ class KLFactory : public BaseFactory
KLFactory();
protected:
virtual BaseBoard *createBoard(bool, TQWidget *tqparent)
{ return new KLBoard(tqparent); }
virtual BaseInterface *createInterface(TQWidget *tqparent)
{ return new Field(tqparent); }
virtual BaseBoard *createBoard(bool, TQWidget *parent)
{ return new KLBoard(parent); }
virtual BaseInterface *createInterface(TQWidget *parent)
{ return new Field(parent); }
};
class KLMainWindow : public BaseMainWindow

@ -19,8 +19,8 @@
#include "cfg.h"
#include "field.moc"
Field::Field(TQWidget* tqparent, const char* name)
: TQWidget( tqparent, name )
Field::Field(TQWidget* parent, const char* name)
: TQWidget( parent, name )
{
clearField();
}

@ -36,7 +36,7 @@ public:
void saveUndo();
protected:
Field(TQWidget* tqparent, const char* name);
Field(TQWidget* parent, const char* name);
~Field();
void putBall(int x, int y, int color);

@ -34,8 +34,8 @@
Constructs a LinesBoard widget.
*/
LinesBoard::LinesBoard( BallPainter * abPainter, TQWidget* tqparent, const char* name )
: Field( tqparent, name )
LinesBoard::LinesBoard( BallPainter * abPainter, TQWidget* parent, const char* name )
: Field( parent, name )
{
demoLabel = 0;
bGameOver = false;

@ -34,7 +34,7 @@ class LinesBoard : public Field
Q_OBJECT
TQ_OBJECT
public:
LinesBoard( BallPainter * abPainter, TQWidget* tqparent=0, const char* name=0 );
LinesBoard( BallPainter * abPainter, TQWidget* parent=0, const char* name=0 );
~LinesBoard();
int width();

@ -24,8 +24,8 @@
#include "ballpainter.h"
MainWidget::MainWidget( TQWidget* tqparent, const char* name )
: TQFrame( tqparent, name )
MainWidget::MainWidget( TQWidget* parent, const char* name )
: TQFrame( parent, name )
{
TQBoxLayout *grid = new TQHBoxLayout( this, 5 ); //(rows,col)
bPainter = new BallPainter();
@ -36,7 +36,7 @@ MainWidget::MainWidget( TQWidget* tqparent, const char* name )
TQBoxLayout *right = new TQVBoxLayout(grid, 2);
TQLabel *label = new TQLabel(i18n("Next balls:"), this);
lPrompt = new LinesPrompt(bPainter, this);
connect(lPrompt, TQT_SIGNAL(PromptPressed()), tqparent, TQT_SLOT(switchPrompt()));
connect(lPrompt, TQT_SIGNAL(PromptPressed()), parent, TQT_SLOT(switchPrompt()));
right->addWidget( label, 0, TQt::AlignBottom | TQt::AlignHCenter );
right->addWidget( lPrompt, 0, TQt::AlignTop | TQt::AlignHCenter );

@ -36,7 +36,7 @@ class MainWidget : public TQFrame
BallPainter *bPainter;
public:
MainWidget( TQWidget* tqparent=0, const char* name=0 );
MainWidget( TQWidget* parent=0, const char* name=0 );
~MainWidget();
LinesBoard * GetLsb();
LinesPrompt * GetPrompt();

@ -19,8 +19,8 @@
#include "prompt.h"
#include "prompt.moc"
LinesPrompt::LinesPrompt( BallPainter * abPainter, TQWidget* tqparent, const char* name )
: TQWidget( tqparent, name )
LinesPrompt::LinesPrompt( BallPainter * abPainter, TQWidget* parent, const char* name )
: TQWidget( parent, name )
{
bPainter = abPainter;

@ -34,7 +34,7 @@ class LinesPrompt : public TQWidget
void mousePressEvent( TQMouseEvent* );
public:
LinesPrompt( BallPainter * abPainter, TQWidget * tqparent=0, const char * name=0 );
LinesPrompt( BallPainter * abPainter, TQWidget * parent=0, const char * name=0 );
~LinesPrompt();
void setPrompt(bool enabled);

@ -41,11 +41,11 @@
Editor::Editor
(
TQWidget* tqparent,
TQWidget* parent,
const char* name
)
:
TQDialog( tqparent, name, true, 0 ), tiles(false)
TQDialog( parent, name, true, 0 ), tiles(false)
{
clean= true;

@ -23,7 +23,7 @@ public:
Editor
(
TQWidget* tqparent = NULL,
TQWidget* parent = NULL,
const char* name = NULL
);

@ -8,11 +8,11 @@
//
// Constructs a GameTimer widget with a tqparent and a name.
// Constructs a GameTimer widget with a parent and a name.
//
GameTimer::GameTimer( TQWidget *tqparent, const char *name )
: TQLCDNumber( tqparent, name )
GameTimer::GameTimer( TQWidget *parent, const char *name )
: TQLCDNumber( parent, name )
{
showingColon = false;
setNumDigits(7);

@ -26,7 +26,7 @@ class GameTimer: public TQLCDNumber
Q_OBJECT
TQ_OBJECT
public:
GameTimer( TQWidget *tqparent=0, const char *name=0 );
GameTimer( TQWidget *parent=0, const char *name=0 );
int toInt();
TQString toString() {return theTimer.toString();}

@ -43,11 +43,11 @@ int defTimes[numScores] = {ages, ages-1, ages-2, ages-3,
HighScore::HighScore
(
TQWidget* tqparent,
TQWidget* parent,
const char* name
)
:
TQDialog( tqparent, name, true, 0 )
TQDialog( parent, name, true, 0 )
{
// form the target name

@ -35,7 +35,7 @@ public:
HighScore
(
TQWidget* tqparent = NULL,
TQWidget* parent = NULL,
const char* name = NULL
);

@ -19,7 +19,7 @@
static const char * themeMagicV1_0= "kmahjongg-theme-v1.0";
Preview::Preview(TQWidget* tqparent) : KDialogBase(tqparent), m_tiles(true)
Preview::Preview(TQWidget* parent) : KDialogBase(parent), m_tiles(true)
{
KPushButton *loadButton;
TQGroupBox *group;
@ -421,8 +421,8 @@ void Preview::saveTheme() {
fclose(outFile);
}
FrameImage::FrameImage (TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name)
FrameImage::FrameImage (TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
rx = -1;
thePixmap = new TQPixmap();

@ -17,7 +17,7 @@ class FrameImage: public TQFrame
Q_OBJECT
TQ_OBJECT
public:
FrameImage(TQWidget *tqparent=NULL, const char *name = NULL);
FrameImage(TQWidget *parent=NULL, const char *name = NULL);
~FrameImage();
void setGeometry(int x, int y, int w, int h);
TQPixmap *getPreviewPixmap() {return thePixmap;}
@ -49,7 +49,7 @@ class Preview: public KDialogBase
public:
enum PreviewType {background, tileset, board, theme};
Preview(TQWidget* tqparent);
Preview(TQWidget* parent);
~Preview();
void initialise(const PreviewType type);

@ -195,7 +195,7 @@ void Tileset::createPixmap(TQRgb *src, TQPixmap &dest, bool scale, bool shadow)
}
// create the pixmap and initialise the drawing tqmask
// create the pixmap and initialise the drawing mask
if (!scale) {
dest.convertFromImage(buff);
dest.setMask(maskBits);

@ -61,8 +61,8 @@ class Tileset {
private:
TQBitmap maskBits; // xbm tqmask for the tile
TQBitmap maskBitsMini; // xbm tqmask for the tile
TQBitmap maskBits; // xbm mask for the tile
TQBitmap maskBitsMini; // xbm mask for the tile
TQRgb* tiles; // Buffer containing all tiles (unselected glyphs)
TQRgb* selectedTiles; // Buffer containing all tiles (selected glyphs)

@ -14,8 +14,8 @@
* Constructor.
* Loads tileset and background bitmaps.
*/
BoardWidget::BoardWidget( TQWidget* tqparent, const char *name )
: TQWidget( tqparent, name ), theTiles(false)
BoardWidget::BoardWidget( TQWidget* parent, const char *name )
: TQWidget( parent, name ), theTiles(false)
{
setBackgroundColor( TQColor( 0,0,0 ) );
@ -882,7 +882,7 @@ int BoardWidget::tileAt(int x, int y, int z) {
bool BoardWidget::generateSolvableGame() {
// Initially we want to mark positions on layer 0 so that we have only
// one free position per aptqparent horizontal line.
// one free position per apparent horizontal line.
for (int i = 0; i < numTiles; i++) {
// Pick a random tile on layer 0
@ -894,7 +894,7 @@ bool BoardWidget::generateSolvableGame() {
}
} while (tilePositions[position].e != 0);
// If there are no other free positions on the same aptqparent
// If there are no other free positions on the same apparent
// horizontal line, we can mark that position as free.
if (onlyFreeInLine(position)) {
positionDepends[position].free = true;
@ -965,7 +965,7 @@ bool BoardWidget::generateSolvableGame() {
// ---------------------------------------------------------
// Determines whether it is ok to mark this position as "free" because
// there are no other positions marked "free" in its aptqparent horizontal
// there are no other positions marked "free" in its apparent horizontal
// line.
bool BoardWidget::onlyFreeInLine(int position) {
@ -1104,7 +1104,7 @@ void BoardWidget::updateDepend(int position) {
}
}
// If position is first free on aptqparent horizontal, it is
// If position is first free on apparent horizontal, it is
// now free to be filled.
if (onlyFreeInLine(position)) {
positionDepends[position].free = true;

@ -92,7 +92,7 @@ class BoardWidget : public TQWidget
TQ_OBJECT
public:
BoardWidget( TQWidget* tqparent = 0, const char *name = 0 );
BoardWidget( TQWidget* parent = 0, const char *name = 0 );
~BoardWidget();
void calculateNewGame(int num = -1 );

@ -57,8 +57,8 @@ int is_paused = 0;
/**
Constructor.
*/
KMahjongg::KMahjongg( TQWidget* tqparent, const char *name)
: KMainWindow(tqparent, name)
KMahjongg::KMahjongg( TQWidget* parent, const char *name)
: KMainWindow(parent, name)
{
boardEditor = 0;

@ -54,7 +54,7 @@ class KMahjongg : public KMainWindow
TQ_OBJECT
public:
KMahjongg( TQWidget* tqparent = 0, const char *name = 0);
KMahjongg( TQWidget* parent = 0, const char *name = 0);
~KMahjongg();
public slots:

@ -61,8 +61,8 @@ void Smiley::setMood(Mood mood)
}
//-----------------------------------------------------------------------------
DigitalClock::DigitalClock(TQWidget *tqparent)
: KGameLCDClock(tqparent, "digital_clock")
DigitalClock::DigitalClock(TQWidget *parent)
: KGameLCDClock(parent, "digital_clock")
{
setFrameStyle(Panel | Sunken);
setDefaultBackgroundColor(black);

@ -36,8 +36,8 @@ class Smiley : public TQPushButton, public KMines
Q_OBJECT
TQ_OBJECT
public:
Smiley(TQWidget *tqparent, const char *name = 0)
: TQPushButton(TQString(), tqparent, name) {}
Smiley(TQWidget *parent, const char *name = 0)
: TQPushButton(TQString(), parent, name) {}
public slots:
void setMood(Mood);
@ -52,7 +52,7 @@ class DigitalClock : public KGameLCDClock
Q_OBJECT
TQ_OBJECT
public:
DigitalClock(TQWidget *tqparent);
DigitalClock(TQWidget *parent);
void reset(bool customGame);

@ -44,8 +44,8 @@ const Field::ActionData Field::ACTION_DATA[Nb_Actions] = {
{ "UnsetUncertain", "unset_uncertain", I18N_NOOP("Question mark unset") }
};
Field::Field(TQWidget *tqparent)
: FieldFrame(tqparent), _state(Init), _solvingState(Regular), _level(Level::Easy)
Field::Field(TQWidget *parent)
: FieldFrame(parent), _state(Init), _solvingState(Regular), _level(Level::Easy)
{}
void Field::readSettings()

@ -37,7 +37,7 @@ class Field : public FieldFrame, public BaseField
static const ActionData ACTION_DATA[Nb_Actions];
public:
Field(TQWidget *tqparent);
Field(TQWidget *parent);
virtual TQSize tqsizeHint() const;

@ -26,8 +26,8 @@
#include "settings.h"
FieldFrame::FieldFrame(TQWidget *tqparent)
: TQFrame(tqparent, "field"), _button(0)
FieldFrame::FieldFrame(TQWidget *parent)
: TQFrame(parent, "field"), _button(0)
{
setFrameStyle( TQFrame::Box | TQFrame::Raised );
setLineWidth(2);
@ -39,18 +39,18 @@ void FieldFrame::adjustSize()
setFixedSize(tqsizeHint());
_button.resize(Settings::caseSize(), Settings::caseSize());
TQBitmap tqmask;
TQBitmap mask;
for (uint i=0; i<Nb_Pixmap_Types; i++) {
TQPixmap mask_pm = tqmask;
TQPixmap mask_pm = mask;
drawPixmap(mask_pm, (PixmapType)i, true);
drawPixmap(_pixmaps[i], (PixmapType)i, false);
_pixmaps[i].setMask(tqmask);
_pixmaps[i].setMask(mask);
}
for (uint i=0; i<Nb_Advised; i++) {
TQPixmap mask_pm = tqmask;
TQPixmap mask_pm = mask;
drawAdvised(mask_pm, i, true);
drawAdvised(_advised[i], i, false);
_advised[i].setMask(tqmask);
_advised[i].setMask(mask);
}
TQFont f = font();
@ -59,44 +59,44 @@ void FieldFrame::adjustSize()
setFont(f);
}
void FieldFrame::initPixmap(TQPixmap &pix, bool tqmask) const
void FieldFrame::initPixmap(TQPixmap &pix, bool mask) const
{
pix.resize(Settings::caseSize(), Settings::caseSize());
if (tqmask) pix.fill(color0);
if (mask) pix.fill(color0);
}
void FieldFrame::drawPixmap(TQPixmap &pix, PixmapType type, bool tqmask) const
void FieldFrame::drawPixmap(TQPixmap &pix, PixmapType type, bool mask) const
{
initPixmap(pix, tqmask);
initPixmap(pix, mask);
TQPainter p(&pix);
if ( type==FlagPixmap ) {
p.setWindow(0, 0, 16, 16);
p.setPen( (tqmask ? color1 : black) );
p.setPen( (mask ? color1 : black) );
p.drawLine(6, 13, 14, 13);
p.drawLine(8, 12, 12, 12);
p.drawLine(9, 11, 11, 11);
p.drawLine(10, 2, 10, 10);
if (!tqmask) p.setPen(black);
p.setBrush( (tqmask ? color1 : Settings::color(Settings::EnumType::flag)) );
if (!mask) p.setPen(black);
p.setBrush( (mask ? color1 : Settings::color(Settings::EnumType::flag)) );
p.drawRect(4, 3, 6, 5);
return;
}
p.setWindow(0, 0, 20, 20);
if ( type==ExplodedPixmap )
p.fillRect(2, 2, 16, 16, (tqmask ? color1 : Settings::color(Settings::EnumType::explosion)));
TQPen pen(tqmask ? color1 : black, 1);
p.fillRect(2, 2, 16, 16, (mask ? color1 : Settings::color(Settings::EnumType::explosion)));
TQPen pen(mask ? color1 : black, 1);
p.setPen(pen);
p.setBrush(tqmask ? color1 : black);
p.setBrush(mask ? color1 : black);
p.drawLine(10,3,10,18);
p.drawLine(3,10,18,10);
p.drawLine(5, 5, 16, 16);
p.drawLine(5, 15, 15, 5);
p.drawEllipse(5, 5, 11, 11);
p.fillRect(8, 8, 2, 2, (tqmask ? color1 : white));
p.fillRect(8, 8, 2, 2, (mask ? color1 : white));
if ( type==ErrorPixmap ) {
if (!tqmask) {
if (!mask) {
pen.setColor(Settings::color(Settings::EnumType::error));
p.setPen(pen);
}
@ -109,12 +109,12 @@ void FieldFrame::drawPixmap(TQPixmap &pix, PixmapType type, bool tqmask) const
}
}
void FieldFrame::drawAdvised(TQPixmap &pix, uint i, bool tqmask) const
void FieldFrame::drawAdvised(TQPixmap &pix, uint i, bool mask) const
{
initPixmap(pix, tqmask);
initPixmap(pix, mask);
TQPainter p(&pix);
p.setWindow(0, 0, 16, 16);
p.setPen( TQPen(tqmask ? color1 : Settings::mineColor(i), 2) );
p.setPen( TQPen(mask ? color1 : Settings::mineColor(i), 2) );
p.drawRect(3, 3, 11, 11);
}

@ -30,7 +30,7 @@ class TQPainter;
class FieldFrame : public TQFrame, public KMines
{
public:
FieldFrame(TQWidget *tqparent);
FieldFrame(TQWidget *parent);
protected:
enum PixmapType { FlagPixmap = 0, MinePixmap, ExplodedPixmap,
@ -48,9 +48,9 @@ class FieldFrame : public TQFrame, public KMines
TQPixmap _pixmaps[Nb_Pixmap_Types];
TQPixmap _advised[Nb_Advised];
void drawPixmap(TQPixmap &, PixmapType, bool tqmask) const;
void drawAdvised(TQPixmap &, uint i, bool tqmask) const;
void initPixmap(TQPixmap &, bool tqmask) const;
void drawPixmap(TQPixmap &, PixmapType, bool mask) const;
void drawAdvised(TQPixmap &, uint i, bool mask) const;
void initPixmap(TQPixmap &, bool mask) const;
};
#endif

@ -159,9 +159,9 @@ void AdviseFast::RuleSet::addGeneral(Coord p){
int AdviseFast::Rule::leaks = 0;
#endif
AdviseFast::Rule::Rule(RuleSet *tqparent) :
_parent(tqparent),
_facts(tqparent->facts)
AdviseFast::Rule::Rule(RuleSet *parent) :
_parent(parent),
_facts(parent->facts)
{
#if defined(DEBUG) && DEBUG >= 2
cout << "Rule::Rule, leaks = " << ++leaks << endl;
@ -177,8 +177,8 @@ AdviseFast::Rule::~Rule()
AdviseFast::GeneralRule::GeneralRule(
Coord fact,
RuleSet *tqparent) :
Rule(tqparent),
RuleSet *parent) :
Rule(parent),
_fact(fact)
{}
@ -242,8 +242,8 @@ bool AdviseFast::GeneralRule::apply(CoordSet *)
AdviseFast::EmptyRule::EmptyRule(
Coord fact,
RuleSet *tqparent) :
Rule(tqparent),
RuleSet *parent) :
Rule(parent),
_fact(fact)
{}
@ -285,8 +285,8 @@ bool AdviseFast::EmptyRule::apply(
AdviseFast::FullRule::FullRule(
Coord fact,
RuleSet *tqparent) :
Rule(tqparent),
RuleSet *parent) :
Rule(parent),
_fact(fact)
{}
@ -336,8 +336,8 @@ bool AdviseFast::FullRule::apply(
AdviseFast::InclusionRule::InclusionRule(
Coord bigger, Coord smaller,
RuleSet *tqparent) :
Rule(tqparent),
RuleSet *parent) :
Rule(parent),
_bigger(bigger), _smaller(smaller)
{}
@ -402,8 +402,8 @@ bool AdviseFast::InclusionRule::apply(
AdviseFast::IntersectionRule::IntersectionRule(
Coord bigger, Coord smaller,
RuleSet *tqparent) :
Rule(tqparent),
RuleSet *parent) :
Rule(parent),
_bigger(bigger), _smaller(smaller)
{}

@ -107,7 +107,7 @@ namespace AdviseFast {
*/
class RuleSet;
struct Rule {
Rule(RuleSet *tqparent);
Rule(RuleSet *parent);
virtual ~Rule();
virtual bool apply(CoordSet *surePoints) = 0;

@ -50,8 +50,8 @@ class SolverPrivate
#endif
};
Solver::Solver(TQObject *tqparent)
: TQObject(tqparent)
Solver::Solver(TQObject *parent)
: TQObject(parent)
{
d = new SolverPrivate;
@ -186,9 +186,9 @@ bool Solver::solveOneStep(BaseField &field)
//-----------------------------------------------------------------------------
SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *tqparent)
SolvingRateDialog::SolvingRateDialog(const BaseField &field, TQWidget *parent)
: KDialogBase(Plain, i18n("Compute Solving Rate"), Ok|Close,
Close, tqparent, "compute_solving_rate", true, true),
Close, parent, "compute_solving_rate", true, true),
_refField(field)
{
connect(&_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool)));

@ -34,7 +34,7 @@ class Solver : public TQObject
Q_OBJECT
TQ_OBJECT
public:
Solver(TQObject *tqparent = 0);
Solver(TQObject *parent = 0);
~Solver();
/** A method to advice a point placement */
@ -65,7 +65,7 @@ class SolvingRateDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
SolvingRateDialog(const BaseField &field, TQWidget *tqparent);
SolvingRateDialog(const BaseField &field, TQWidget *parent);
private slots:
void step();

@ -45,8 +45,8 @@
#include "version.h"
tqStatus::tqStatus(TQWidget *tqparent)
: TQWidget(tqparent, "status"), _oldLevel(Level::Easy)
tqStatus::tqStatus(TQWidget *parent)
: TQWidget(parent, "status"), _oldLevel(Level::Easy)
{
_timer = new TQTimer(this);
connect(_timer, TQT_SIGNAL(timeout()), TQT_SLOT(replayStep()));

@ -35,7 +35,7 @@ class tqStatus : public TQWidget, public KMines
Q_OBJECT
TQ_OBJECT
public :
tqStatus(TQWidget *tqparent);
tqStatus(TQWidget *parent);
const Level &currentLevel() const { return _field->level(); }
bool isPlaying() const { return _field->gameState()==Playing; }

@ -69,7 +69,7 @@ void Cell::initPixmaps()
}
}
Cell::Cell(TQWidget* tqparent, int i) : TQWidget(tqparent, 0, WNoAutoErase)
Cell::Cell(TQWidget* parent, int i) : TQWidget(parent, 0, WNoAutoErase)
{
angle = 0;
light = 0;

@ -24,7 +24,7 @@ class Cell : public TQWidget
TQ_OBJECT
public:
enum Dirs { Free = 0, U = 1, R = 2, D = 4, L = 8, None = 16 };
Cell(TQWidget* tqparent, int i);
Cell(TQWidget* parent, int i);
int index() const;
void rotate(int a);
void setDirs(Dirs d);

@ -52,8 +52,8 @@
static TQMap<Cell::Dirs, Cell::Dirs> contrdirs;
MainWindow::MainWindow(TQWidget *tqparent, const char* name, WFlags /*fl*/) :
KMainWindow(tqparent, name, WStyle_NoBorder)
MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
KMainWindow(parent, name, WStyle_NoBorder)
{
m_clickcount = 0;

@ -29,7 +29,7 @@ class MainWindow : public KMainWindow
Q_OBJECT
TQ_OBJECT
public:
MainWindow(TQWidget *tqparent=0, const char* name=0, WFlags fl=0);
MainWindow(TQWidget *parent=0, const char* name=0, WFlags fl=0);
protected:
virtual void closeEvent(TQCloseEvent*);
private:

@ -125,7 +125,7 @@ public:
* returns a Config that can be used to configure this item by the user.
* The default implementation returns one that says 'No configuration options'.
*/
virtual Config *config(TQWidget *tqparent) { return new DefaultConfig(tqparent); }
virtual Config *config(TQWidget *parent) { return new DefaultConfig(parent); }
/**
* returns other items that should be moveable (besides this one of course).
*/

@ -6,8 +6,8 @@
#include "config.h"
Config::Config(TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name)
Config::Config(TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
startedUp = false;
}
@ -33,15 +33,15 @@ void Config::changed()
emit modified();
}
MessageConfig::MessageConfig(TQString text, TQWidget *tqparent, const char *name)
: Config(tqparent, name)
MessageConfig::MessageConfig(TQString text, TQWidget *parent, const char *name)
: Config(parent, name)
{
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
tqlayout->addWidget(new TQLabel(text, this));
}
DefaultConfig::DefaultConfig(TQWidget *tqparent, const char *name)
: MessageConfig(i18n("No configuration options"), tqparent, name)
DefaultConfig::DefaultConfig(TQWidget *parent, const char *name)
: MessageConfig(i18n("No configuration options"), parent, name)
{
}

@ -9,7 +9,7 @@ class Config : public TQFrame
TQ_OBJECT
public:
Config(TQWidget *tqparent, const char *name = 0);
Config(TQWidget *parent, const char *name = 0);
void ctorDone();
signals:
@ -29,7 +29,7 @@ class MessageConfig : public Config
TQ_OBJECT
public:
MessageConfig(TQString text, TQWidget *tqparent, const char *name = 0);
MessageConfig(TQString text, TQWidget *parent, const char *name = 0);
};
// internal
@ -39,7 +39,7 @@ class DefaultConfig : public MessageConfig
TQ_OBJECT
public:
DefaultConfig(TQWidget *tqparent, const char *name = 0);
DefaultConfig(TQWidget *parent, const char *name = 0);
};
#endif

@ -9,8 +9,8 @@
#include "editor.h"
#include "game.h"
Editor::Editor(ObjectList *list, TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name)
Editor::Editor(ObjectList *list, TQWidget *parent, const char *name)
: TQWidget(parent, name)
{
this->list = list;
config = 0;

@ -39,9 +39,9 @@ void FloaterGuide::setPoints(int xa, int ya, int xb, int yb)
}
}
Config *FloaterGuide::config(TQWidget *tqparent)
Config *FloaterGuide::config(TQWidget *parent)
{
return floater->config(tqparent);
return floater->config(parent);
}
/////////////////////////
@ -253,8 +253,8 @@ void Floater::firstMove(int x, int y)
/////////////////////////
FloaterConfig::FloaterConfig(Floater *floater, TQWidget *tqparent)
: BridgeConfig(floater, tqparent)
FloaterConfig::FloaterConfig(Floater *floater, TQWidget *parent)
: BridgeConfig(floater, parent)
{
this->floater = floater;
m_vtqlayout->addStretch();

@ -10,7 +10,7 @@ class FloaterConfig : public BridgeConfig
TQ_OBJECT
public:
FloaterConfig(Floater *floater, TQWidget *tqparent);
FloaterConfig(Floater *floater, TQWidget *parent);
private slots:
void speedChanged(int news);
@ -25,7 +25,7 @@ public:
FloaterGuide(Floater *floater, TQCanvas *canvas) : Wall(canvas) { this->floater = floater; almostDead = false; }
virtual void setPoints(int xa, int ya, int xb, int yb);
virtual void moveBy(double dx, double dy);
virtual Config *config(TQWidget *tqparent);
virtual Config *config(TQWidget *parent);
virtual void aboutToDelete();
virtual void aboutToDie();
@ -52,7 +52,7 @@ public:
virtual void editModeChanged(bool changed);
virtual bool moveable() const { return false; }
virtual void moveBy(double dx, double dy);
virtual Config *config(TQWidget *tqparent) { return new FloaterConfig(this, tqparent); }
virtual Config *config(TQWidget *parent) { return new FloaterConfig(this, parent); }
virtual TQPtrList<TQCanvasItem> moveableItems() const;
virtual void advance(int phase);
void setSpeed(int news);

@ -101,13 +101,13 @@ void RectPoint::moveBy(double dx, double dy)
rect->newSize(nw, nh);
}
Config *RectPoint::config(TQWidget *tqparent)
Config *RectPoint::config(TQWidget *parent)
{
CanvasItem *citem = dynamic_cast<CanvasItem *>(rect);
if (citem)
return citem->config(tqparent);
return citem->config(parent);
else
return CanvasItem::config(tqparent);
return CanvasItem::config(parent);
}
/////////////////////////
@ -192,8 +192,8 @@ void Arrow::updateSelf()
/////////////////////////
BridgeConfig::BridgeConfig(Bridge *bridge, TQWidget *tqparent)
: Config(tqparent)
BridgeConfig::BridgeConfig(Bridge *bridge, TQWidget *parent)
: Config(parent)
{
this->bridge = bridge;
@ -401,8 +401,8 @@ void Bridge::setSize(int width, int height)
/////////////////////////
WindmillConfig::WindmillConfig(Windmill *windmill, TQWidget *tqparent)
: BridgeConfig(windmill, tqparent)
WindmillConfig::WindmillConfig(Windmill *windmill, TQWidget *parent)
: BridgeConfig(windmill, parent)
{
this->windmill = windmill;
m_vtqlayout->addStretch();
@ -639,8 +639,8 @@ void Sign::draw(TQPainter &painter)
/////////////////////////
SignConfig::SignConfig(Sign *sign, TQWidget *tqparent)
: BridgeConfig(sign, tqparent)
SignConfig::SignConfig(Sign *sign, TQWidget *parent)
: BridgeConfig(sign, parent)
{
this->sign = sign;
m_vtqlayout->addStretch();
@ -658,8 +658,8 @@ void SignConfig::textChanged(const TQString &text)
/////////////////////////
EllipseConfig::EllipseConfig(Ellipse *ellipse, TQWidget *tqparent)
: Config(tqparent), slow1(0), fast1(0), slow2(0), fast2(0), slider1(0), slider2(0)
EllipseConfig::EllipseConfig(Ellipse *ellipse, TQWidget *parent)
: Config(parent), slow1(0), fast1(0), slow2(0), fast2(0), slider1(0), slider2(0)
{
this->ellipse = ellipse;
@ -812,9 +812,9 @@ void Ellipse::save(KConfig *cfg)
cfg->writeEntry("height", height());
}
Config *Ellipse::config(TQWidget *tqparent)
Config *Ellipse::config(TQWidget *parent)
{
return new EllipseConfig(this, tqparent);
return new EllipseConfig(this, parent);
}
void Ellipse::aboutToSave()
@ -1492,15 +1492,15 @@ void BlackHoleExit::hideInfo()
arrow->tqsetVisible(false);
}
Config *BlackHoleExit::config(TQWidget *tqparent)
Config *BlackHoleExit::config(TQWidget *parent)
{
return blackHole->config(tqparent);
return blackHole->config(parent);
}
/////////////////////////
BlackHoleConfig::BlackHoleConfig(BlackHole *blackHole, TQWidget *tqparent)
: Config(tqparent)
BlackHoleConfig::BlackHoleConfig(BlackHole *blackHole, TQWidget *parent)
: Config(parent)
{
this->blackHole = blackHole;
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
@ -1954,8 +1954,8 @@ void Wall::save(KConfig *cfg)
/////////////////////////
HoleConfig::HoleConfig(HoleInfo *holeInfo, TQWidget *tqparent)
: Config(tqparent)
HoleConfig::HoleConfig(HoleInfo *holeInfo, TQWidget *parent)
: Config(parent)
{
this->holeInfo = holeInfo;
@ -2139,8 +2139,8 @@ void StrokeCircle::draw(TQPainter &p)
/////////////////////////////////////////
KolfGame::KolfGame(ObjectList *obj, PlayerList *players, TQString filename, TQWidget *tqparent, const char *name )
: TQCanvasView(tqparent, name)
KolfGame::KolfGame(ObjectList *obj, PlayerList *players, TQString filename, TQWidget *parent, const char *name )
: TQCanvasView(parent, name)
{
// for mouse control
setMouseTracking(true);

@ -142,7 +142,7 @@ public:
RectPoint(TQColor color, RectItem *, TQCanvas *canvas);
void dontMove() { dontmove = true; }
virtual void moveBy(double dx, double dy);
virtual Config *config(TQWidget *tqparent);
virtual Config *config(TQWidget *parent);
virtual bool deleteable() const { return false; }
virtual bool cornerResize() const { return true; }
virtual CanvasItem *itemToDelete() { return dynamic_cast<CanvasItem *>(rect); }
@ -181,7 +181,7 @@ public:
virtual void save(KConfig *cfg);
virtual void load(KConfig *cfg);
virtual Config *config(TQWidget *tqparent);
virtual Config *config(TQWidget *parent);
protected:
RectPoint *point;
@ -321,7 +321,7 @@ class BlackHoleConfig : public Config
TQ_OBJECT
public:
BlackHoleConfig(BlackHole *blackHole, TQWidget *tqparent);
BlackHoleConfig(BlackHole *blackHole, TQWidget *parent);
private slots:
void degChanged(int);
@ -346,7 +346,7 @@ public:
virtual void hideInfo();
void updateArrowAngle();
void updateArrowLength();
virtual Config *config(TQWidget *tqparent);
virtual Config *config(TQWidget *parent);
BlackHole *blackHole;
protected:
@ -386,7 +386,7 @@ public:
virtual bool place(Ball *ball, bool wasCenter);
virtual void save(KConfig *cfg);
virtual void load(KConfig *cfg);
virtual Config *config(TQWidget *tqparent) { return new BlackHoleConfig(this, tqparent); }
virtual Config *config(TQWidget *parent) { return new BlackHoleConfig(this, parent); }
virtual TQPtrList<TQCanvasItem> moveableItems() const;
double minSpeed() const { return m_minSpeed; }
double maxSpeed() const { return m_maxSpeed; }
@ -479,7 +479,7 @@ public:
virtual bool collision(Ball *ball, long int id);
virtual CanvasItem *itemToDelete() { return wall; }
virtual void clean();
virtual Config *config(TQWidget *tqparent) { return wall->config(tqparent); }
virtual Config *config(TQWidget *parent) { return wall->config(parent); }
void dontMove() { dontmove = true; };
void updateVisible();
@ -581,7 +581,7 @@ public:
void doSave(KConfig *cfg);
virtual void newSize(int width, int height);
virtual void setGame(KolfGame *game);
virtual Config *config(TQWidget *tqparent) { return new BridgeConfig(this, tqparent); }
virtual Config *config(TQWidget *parent) { return new BridgeConfig(this, parent); }
void setSize(int width, int height);
virtual TQPtrList<TQCanvasItem> moveableItems() const;
@ -621,7 +621,7 @@ class SignConfig : public BridgeConfig
TQ_OBJECT
public:
SignConfig(Sign *sign, TQWidget *tqparent);
SignConfig(Sign *sign, TQWidget *parent);
private slots:
void textChanged(const TQString &);
@ -637,7 +637,7 @@ public:
TQString text() const { return m_text; }
virtual void draw(TQPainter &painter);
virtual bool vStrut() const { return false; }
virtual Config *config(TQWidget *tqparent) { return new SignConfig(this, tqparent); }
virtual Config *config(TQWidget *parent) { return new SignConfig(this, parent); }
virtual void save(KConfig *cfg);
virtual void load(KConfig *cfg);
@ -670,7 +670,7 @@ class WindmillConfig : public BridgeConfig
TQ_OBJECT
public:
WindmillConfig(Windmill *windmill, TQWidget *tqparent);
WindmillConfig(Windmill *windmill, TQWidget *parent);
private slots:
void speedChanged(int news);
@ -688,7 +688,7 @@ public:
virtual void save(KConfig *cfg);
virtual void load(KConfig *cfg);
virtual void setGame(KolfGame *game);
virtual Config *config(TQWidget *tqparent) { return new WindmillConfig(this, tqparent); }
virtual Config *config(TQWidget *parent) { return new WindmillConfig(this, parent); }
void setSize(int width, int height);
virtual void moveBy(double dx, double dy);
void setSpeed(int news);
@ -749,7 +749,7 @@ public:
TQString name() const { return m_name; }
TQString untranslatedName() const { return m_untranslatedName; }
virtual Config *config(TQWidget *tqparent) { return new HoleConfig(this, tqparent); }
virtual Config *config(TQWidget *parent) { return new HoleConfig(this, parent); }
void borderWallsChanged(bool yes);
bool borderWalls() const { return m_borderWalls; }
@ -804,7 +804,7 @@ class KDE_EXPORT KolfGame : public TQCanvasView
TQ_OBJECT
public:
KolfGame(ObjectList *obj, PlayerList *players, TQString filename, TQWidget *tqparent=0, const char *name=0 );
KolfGame(ObjectList *obj, PlayerList *players, TQString filename, TQWidget *parent=0, const char *name=0 );
~KolfGame();
void setObjects(ObjectList *obj) { this->obj = obj; }
void setFilename(const TQString &filename);

@ -34,8 +34,8 @@
#include "kcomboboxdialog.h"
KComboBoxDialog::KComboBoxDialog( const TQString &_text, const TQStringList &_items, const TQString& _value, bool showDontAskAgain, TQWidget *tqparent )
: KDialogBase( Plain, TQString(), Ok, Ok, tqparent, 0L, true, true )
KComboBoxDialog::KComboBoxDialog( const TQString &_text, const TQStringList &_items, const TQString& _value, bool showDontAskAgain, TQWidget *parent )
: KDialogBase( Plain, TQString(), Ok, Ok, parent, 0L, true, true )
{
TQVBoxLayout *topLayout = new TQVBoxLayout( plainPage(), marginHint(), spacingHint() );
TQLabel *label = new TQLabel(_text, plainPage() );
@ -76,12 +76,12 @@ bool KComboBoxDialog::dontAskAgainChecked()
return false;
}
TQString KComboBoxDialog::getItem( const TQString &_text, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *tqparent )
TQString KComboBoxDialog::getItem( const TQString &_text, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *parent )
{
return getItem( _text, TQString(), _items, _value, dontAskAgainName, tqparent );
return getItem( _text, TQString(), _items, _value, dontAskAgainName, parent );
}
TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_caption, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *tqparent )
TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_caption, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *parent )
{
TQString prevAnswer;
if ( !dontAskAgainName.isEmpty() )
@ -94,7 +94,7 @@ TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_capti
return prevAnswer;
}
KComboBoxDialog dlg( _text, _items, _value, !dontAskAgainName.isNull(), tqparent );
KComboBoxDialog dlg( _text, _items, _value, !dontAskAgainName.isNull(), parent );
if ( !_caption.isNull() )
dlg.setCaption( _caption );
@ -115,9 +115,9 @@ TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_capti
return text;
}
TQString KComboBoxDialog::getText(const TQString &_caption, const TQString &_text, const TQString &_value, bool *ok, TQWidget *tqparent, const TQString &configName, KConfig *config)
TQString KComboBoxDialog::getText(const TQString &_caption, const TQString &_text, const TQString &_value, bool *ok, TQWidget *parent, const TQString &configName, KConfig *config)
{
KComboBoxDialog dlg(_text, TQStringList(), _value, false, tqparent);
KComboBoxDialog dlg(_text, TQStringList(), _value, false, parent);
if ( !_caption.isNull() )
dlg.setCaption( _caption );

@ -52,7 +52,7 @@ public:
* @param _text Text of the label
* @param _value Initial value of the combobox
*/
KComboBoxDialog( const TQString &_text, const TQStringList& _items, const TQString& _value = TQString(), bool showDontAskAgain = false, TQWidget *tqparent = 0 );
KComboBoxDialog( const TQString &_text, const TQStringList& _items, const TQString& _value = TQString(), bool showDontAskAgain = false, TQWidget *parent = 0 );
virtual ~KComboBoxDialog();
/**
@ -73,7 +73,7 @@ public:
* @param _value Initial value of the inputline
* @param dontAskAgainName Name for saving whether the user doesn't want to be asked again; use TQString() to disable
*/
static TQString getItem( const TQString &_text, const TQStringList &_items, const TQString& _value = TQString(), const TQString &dontAskAgainName = TQString(), TQWidget *tqparent = 0 );
static TQString getItem( const TQString &_text, const TQStringList &_items, const TQString& _value = TQString(), const TQString &dontAskAgainName = TQString(), TQWidget *parent = 0 );
/**
* Static convenience function to get input from the user.
@ -85,7 +85,7 @@ public:
* @param _value Initial value of the inputline
* @param dontAskAgainName Name for saving whether the user doesn't want to be asked again; use TQString() to disable
*/
static TQString getItem( const TQString &_text, const TQString &_caption, const TQStringList &_items, const TQString& _value = TQString(), const TQString &dontAskAgainName = TQString(), TQWidget *tqparent = 0 );
static TQString getItem( const TQString &_text, const TQString &_caption, const TQStringList &_items, const TQString& _value = TQString(), const TQString &dontAskAgainName = TQString(), TQWidget *parent = 0 );
/**
* Static convenience method.
@ -96,13 +96,13 @@ public:
* @param _text Text of the label
* @param _value Initial value of the inputline
* @param ok Variable to store whether the user hit OK
* @param tqparent Parent widget for the dialog
* @param parent Parent widget for the dialog
* @param configName Name of the dialog for saving the completion and history
* @parma config KConfig for saving the completion and history
*/
static TQString getText(const TQString &_caption, const TQString &_text,
const TQString &_value = TQString(),
bool *ok = 0, TQWidget *tqparent = 0,
bool *ok = 0, TQWidget *parent = 0,
const TQString &configName = TQString(),
KConfig *config = KGlobal::config());

@ -5,14 +5,14 @@
#include "kvolumecontrol.h"
KVolumeControl::KVolumeControl(Arts::SoundServerV2 server, KPlayObject *tqparent)
: TQObject(tqparent)
KVolumeControl::KVolumeControl(Arts::SoundServerV2 server, KPlayObject *parent)
: TQObject(parent)
{
init(server);
}
KVolumeControl::KVolumeControl(double vol, Arts::SoundServerV2 server, KPlayObject *tqparent)
: TQObject(tqparent)
KVolumeControl::KVolumeControl(double vol, Arts::SoundServerV2 server, KPlayObject *parent)
: TQObject(parent)
{
init(server);
setVolume(vol);
@ -42,8 +42,8 @@ void KVolumeControl::init(Arts::SoundServerV2 server)
}
volumeControl.start();
Arts::connect((static_cast<KPlayObject *>(tqparent()))->object(), "left", volumeControl, "inleft");
Arts::connect((static_cast<KPlayObject *>(tqparent()))->object(), "right", volumeControl, "inright");
Arts::connect((static_cast<KPlayObject *>(parent()))->object(), "left", volumeControl, "inleft");
Arts::connect((static_cast<KPlayObject *>(parent()))->object(), "right", volumeControl, "inright");
Arts::connect(volumeControl, manager);
}

@ -12,8 +12,8 @@ Q_OBJECT
TQ_OBJECT
public:
KVolumeControl(Arts::SoundServerV2 server, KPlayObject *tqparent);
KVolumeControl(double vol, Arts::SoundServerV2 server, KPlayObject *tqparent);
KVolumeControl(Arts::SoundServerV2 server, KPlayObject *parent);
KVolumeControl(double vol, Arts::SoundServerV2 server, KPlayObject *parent);
~KVolumeControl();
void setVolume(double);

@ -35,8 +35,8 @@
#include "newgame.h"
#include "game.h"
NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *tqparent, const char *_name)
: KDialogBase(KDialogBase::TreeList, i18n("New Game"), Ok | Cancel, Ok, tqparent, _name)
NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_name)
: KDialogBase(KDialogBase::TreeList, i18n("New Game"), Ok | Cancel, Ok, parent, _name)
{
this->enableCourses = enableCourses;
@ -311,8 +311,8 @@ void NewGameDialog::enableButtons()
/////////////////////////
PlayerEditor::PlayerEditor(TQString startName, TQColor startColor, TQWidget *tqparent, const char *_name)
: TQWidget(tqparent, _name)
PlayerEditor::PlayerEditor(TQString startName, TQColor startColor, TQWidget *parent, const char *_name)
: TQWidget(parent, _name)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this, KDialogBase::spacingHint());

@ -30,7 +30,7 @@ class PlayerEditor : public TQWidget
TQ_OBJECT
public:
PlayerEditor(TQString name = TQString(), TQColor = red, TQWidget *tqparent = 0, const char *_name = 0);
PlayerEditor(TQString name = TQString(), TQColor = red, TQWidget *parent = 0, const char *_name = 0);
TQColor color() { return colorButton->color(); }
TQString name() { return editor->text(); }
void setColor(TQColor col) { colorButton->setColor(col); }
@ -54,7 +54,7 @@ class NewGameDialog : public KDialogBase
TQ_OBJECT
public:
NewGameDialog(bool enableCourses, TQWidget *tqparent, const char *_name = 0);
NewGameDialog(bool enableCourses, TQWidget *parent, const char *_name = 0);
TQPtrList<PlayerEditor> *players() { return &editors; }
bool competition() { return mode->isChecked(); }
TQString course() { return currentCourse; }

@ -13,7 +13,7 @@ class Object : public TQObject
TQ_OBJECT
public:
Object(TQObject *tqparent = 0, const char *name = 0) : TQObject(tqparent, name) { m_addOnNewHole = false; }
Object(TQObject *parent = 0, const char *name = 0) : TQObject(parent, name) { m_addOnNewHole = false; }
virtual TQCanvasItem *newObject(TQCanvas * /*canvas*/) { return 0; }
TQString name() { return m_name; }
TQString _name() { return m__name; }

@ -54,8 +54,8 @@ void PoolBall::draw(TQPainter &p)
Ball::draw(p);
}
PoolBallConfig::PoolBallConfig(PoolBall *poolBall, TQWidget *tqparent)
: Config(tqparent), m_poolBall(poolBall)
PoolBallConfig::PoolBallConfig(PoolBall *poolBall, TQWidget *parent)
: Config(parent), m_poolBall(poolBall)
{
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
@ -78,9 +78,9 @@ void PoolBallConfig::numberChanged(int newNumber)
changed();
}
Config *PoolBall::config(TQWidget *tqparent)
Config *PoolBall::config(TQWidget *parent)
{
return new PoolBallConfig(this, tqparent);
return new PoolBallConfig(this, parent);
}
#include "poolball.moc"

@ -30,7 +30,7 @@ public:
virtual bool deleteable() const { return true; }
virtual Config *config(TQWidget *tqparent);
virtual Config *config(TQWidget *parent);
virtual void saveState(StateDB *);
virtual void save(KConfig *cfg);
virtual void loadState(StateDB *);
@ -51,7 +51,7 @@ class PoolBallConfig : public Config
TQ_OBJECT
public:
PoolBallConfig(PoolBall *poolBall, TQWidget *tqparent);
PoolBallConfig(PoolBall *poolBall, TQWidget *parent);
private slots:
void numberChanged(int);

@ -14,7 +14,7 @@
#include "test.h"
K_EXPORT_COMPONENT_FACTORY(libkolftest, TestFactory)
TQObject *TestFactory::createObject (TQObject * /*tqparent*/, const char * /*name*/, const char * /*classname*/, const TQStringList & /*args*/)
TQObject *TestFactory::createObject (TQObject * /*parent*/, const char * /*name*/, const char * /*classname*/, const TQStringList & /*args*/)
{ return new TestObj; }
Test::Test(TQCanvas *canvas)
@ -65,8 +65,8 @@ void Test::load(KConfig *cfg)
setSwitchEvery(cfg->readNumEntry("switchEvery", 50));
}
TestConfig::TestConfig(Test *test, TQWidget *tqparent)
: Config(tqparent), m_test(test)
TestConfig::TestConfig(Test *test, TQWidget *parent)
: Config(parent), m_test(test)
{
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
@ -96,9 +96,9 @@ void TestConfig::switchEveryChanged(int news)
changed();
}
Config *Test::config(TQWidget *tqparent)
Config *Test::config(TQWidget *parent)
{
return new TestConfig(this, tqparent);
return new TestConfig(this, parent);
}
#include "test.moc"

@ -24,7 +24,7 @@ class Test : public TQCanvasEllipse, public CanvasItem
public:
Test(TQCanvas *canvas);
virtual Config *config(TQWidget *tqparent);
virtual Config *config(TQWidget *parent);
virtual void save(KConfig *cfg);
virtual void load(KConfig *cfg);
@ -44,7 +44,7 @@ class TestConfig : public Config
TQ_OBJECT
public:
TestConfig(Test *test, TQWidget *tqparent);
TestConfig(Test *test, TQWidget *parent);
private slots:
void switchEveryChanged(int news);

@ -8,8 +8,8 @@
#include "printdialogpage.h"
PrintDialogPage::PrintDialogPage(TQWidget *tqparent, const char *name)
: KPrintDialogPage( tqparent, name )
PrintDialogPage::PrintDialogPage(TQWidget *parent, const char *name)
: KPrintDialogPage( parent, name )
{
setTitle(i18n("Kolf Options"));

@ -14,7 +14,7 @@ class PrintDialogPage : public KPrintDialogPage
TQ_OBJECT
public:
PrintDialogPage(TQWidget *tqparent = 0, const char *name = 0);
PrintDialogPage(TQWidget *parent = 0, const char *name = 0);
//reimplement virtual functions
void getOptions(TQMap<TQString, TQString> &opts, bool incldef = false);

@ -9,8 +9,8 @@
#include "scoreboard.h"
ScoreBoard::ScoreBoard(TQWidget *tqparent, const char *name)
: TQTable(1, 1, tqparent, name)
ScoreBoard::ScoreBoard(TQWidget *parent, const char *name)
: TQTable(1, 1, parent, name)
{
vh = verticalHeader();
hh = horizontalHeader();

@ -12,7 +12,7 @@ class ScoreBoard : public TQTable
TQ_OBJECT
public:
ScoreBoard(TQWidget *tqparent = 0, const char *name = 0);
ScoreBoard(TQWidget *parent = 0, const char *name = 0);
int total(int id, TQString &name);
public slots:

@ -507,7 +507,7 @@ void Slope::updatePixmap()
}
bpainter.drawPolygon(r);
// tqmask is drawn
// mask is drawn
pixmap.setMask(bitmap);
}
@ -517,8 +517,8 @@ void Slope::updatePixmap()
/////////////////////////
SlopeConfig::SlopeConfig(Slope *slope, TQWidget *tqparent)
: Config(tqparent)
SlopeConfig::SlopeConfig(Slope *slope, TQWidget *parent)
: Config(parent)
{
this->slope = slope;
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint());

@ -12,7 +12,7 @@ class SlopeConfig : public Config
TQ_OBJECT
public:
SlopeConfig(Slope *slope, TQWidget *tqparent);
SlopeConfig(Slope *slope, TQWidget *parent);
private slots:
void setGradient(const TQString &text);
@ -36,7 +36,7 @@ public:
virtual void editModeChanged(bool changed);
virtual bool canBeMovedByOthers() const { return !stuckOnGround; }
virtual TQPtrList<TQCanvasItem> moveableItems() const;
virtual Config *config(TQWidget *tqparent) { return new SlopeConfig(this, tqparent); }
virtual Config *config(TQWidget *parent) { return new SlopeConfig(this, parent); }
void setSize(int, int);
virtual void newSize(int width, int height);

@ -8,7 +8,7 @@
#include "fleetdlg.h"
FleetDlgListViewItem::FleetDlgListViewItem(TQListView *tqparent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5) : TQListViewItem(tqparent, s1, s2, s3, s4, s5)
FleetDlgListViewItem::FleetDlgListViewItem(TQListView *parent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5) : TQListViewItem(parent, s1, s2, s3, s4, s5)
{
}
@ -35,8 +35,8 @@ int FleetDlgListViewItem::compare(TQListViewItem *i, int col, bool) const
}
FleetDlg::FleetDlg( TQWidget *tqparent, AttackFleetList *fleets )
: TQDialog(tqparent, "FleetDlg", true ), fleetList(fleets)
FleetDlg::FleetDlg( TQWidget *parent, AttackFleetList *fleets )
: TQDialog(parent, "FleetDlg", true ), fleetList(fleets)
{
setCaption( kapp->makeStdCaption(i18n("Fleet Overview")) );

@ -10,14 +10,14 @@
class FleetDlgListViewItem : public TQListViewItem
{
public:
FleetDlgListViewItem(TQListView *tqparent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5);
FleetDlgListViewItem(TQListView *parent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5);
int compare(TQListViewItem *i, int col, bool) const;
};
class FleetDlg : public TQDialog {
public:
FleetDlg( TQWidget *tqparent, AttackFleetList *fleets );
FleetDlg( TQWidget *parent, AttackFleetList *fleets );
private:
void init();

@ -33,8 +33,8 @@
/*********************************************************************
Game Board
*********************************************************************/
GameBoard::GameBoard( TQWidget *tqparent )
: TQWidget( tqparent ), gameInProgress( false ), gameState( NONE )
GameBoard::GameBoard( TQWidget *parent )
: TQWidget( parent ), gameInProgress( false ), gameState( NONE )
{
TQColorGroup cg( white, black, green.light(), green.dark(), green, green.dark(75), green.dark() );
TQPalette palette( cg, cg, cg );

@ -27,7 +27,7 @@ class GameBoard : public TQWidget
TQ_OBJECT
public:
GameBoard( TQWidget *tqparent );
GameBoard( TQWidget *parent );
virtual ~GameBoard();
bool isGameInProgress(void) const { return gameInProgress; }

@ -11,10 +11,10 @@
#include "gameenddlg.h"
#include "gameenddlg.moc"
GameEndDlg::GameEndDlg( TQWidget *tqparent )
GameEndDlg::GameEndDlg( TQWidget *parent )
: KDialogBase( i18n("Out of Turns"),
KDialogBase::Yes|KDialogBase::No, KDialogBase::Yes, KDialogBase::No,
tqparent, "end_game_dialog", true, true )
parent, "end_game_dialog", true, true )
{
TQVBox *page = makeVBoxMainWidget();

@ -12,7 +12,7 @@ class GameEndDlg : public KDialogBase
TQ_OBJECT
public:
GameEndDlg( TQWidget *tqparent );
GameEndDlg( TQWidget *parent );
virtual ~GameEndDlg();
int extraTurns();

@ -3,8 +3,8 @@
#include "int_validator.h"
#include "int_validator.moc"
IntValidator::IntValidator( TQWidget *tqparent, const char *name ) :
TQValidator( TQT_TQOBJECT(tqparent), name )
IntValidator::IntValidator( TQWidget *parent, const char *name ) :
TQValidator( TQT_TQOBJECT(parent), name )
{
#ifdef INT_MIN
v_bottom = INT_MIN;
@ -14,8 +14,8 @@ IntValidator::IntValidator( TQWidget *tqparent, const char *name ) :
v_top = INT_MIN;
}
IntValidator::IntValidator( int bottom, int top, TQWidget *tqparent, const char *name ) :
TQValidator( TQT_TQOBJECT(tqparent), name )
IntValidator::IntValidator( int bottom, int top, TQWidget *parent, const char *name ) :
TQValidator( TQT_TQOBJECT(parent), name )
{
v_bottom = bottom;
v_top = top;

@ -10,8 +10,8 @@ class IntValidator : public TQValidator
TQ_OBJECT
public:
IntValidator( TQWidget *tqparent, const char *name = 0 );
IntValidator( int bottom, int top, TQWidget *tqparent, const char *name = 0 );
IntValidator( TQWidget *parent, const char *name = 0 );
IntValidator( int bottom, int top, TQWidget *parent, const char *name = 0 );
virtual ~IntValidator();

@ -9,8 +9,8 @@
#include <kglobal.h>
#include "map_widget.moc"
ConquestMap::ConquestMap( Map *newMap, TQWidget *tqparent )
: TQGridView( tqparent ),
ConquestMap::ConquestMap( Map *newMap, TQWidget *parent )
: TQGridView( parent ),
SECTOR_HEIGHT( 28 ), SECTOR_WIDTH( 28 ),
BOARD_HEIGHT( newMap->getRows() * SECTOR_HEIGHT ),
BOARD_WIDTH( newMap->getColumns() * SECTOR_WIDTH ),

@ -20,7 +20,7 @@ class ConquestMap : public TQGridView
// Constructors
public:
ConquestMap( Map *newMap, TQWidget *tqparent = 0 );
ConquestMap( Map *newMap, TQWidget *parent = 0 );
virtual ~ConquestMap();
// Interface

@ -7,8 +7,8 @@
#include "minimap.h"
#include "minimap.moc"
MiniMap::MiniMap( TQWidget *tqparent, const char *name )
: TQGridView( tqparent, name ),
MiniMap::MiniMap( TQWidget *parent, const char *name )
: TQGridView( parent, name ),
SECTOR_HEIGHT( 12 ), SECTOR_WIDTH( 12 ),
BOARD_HEIGHT( 10 * SECTOR_HEIGHT ),
BOARD_WIDTH( 10 * SECTOR_WIDTH ),

@ -18,7 +18,7 @@ class MiniMap : public TQGridView
// Constructors
public:
MiniMap( TQWidget *tqparent = 0, const char* name = 0 );
MiniMap( TQWidget *parent = 0, const char* name = 0 );
virtual ~MiniMap();
void setMap( Map *newMap );

@ -25,9 +25,9 @@
New Game Dialog Members
************************************************************************/
NewGameDlg::NewGameDlg( TQWidget *tqparent, Map *pmap, PlayerList *players,
NewGameDlg::NewGameDlg( TQWidget *parent, Map *pmap, PlayerList *players,
Player *neutralPlayer, PlanetList *planets )
: KDialogBase( tqparent, "new_game_dialog", true, i18n("Start New Game"),
: KDialogBase( parent, "new_game_dialog", true, i18n("Start New Game"),
KDialogBase::Ok|KDialogBase::Default|KDialogBase::Cancel, KDialogBase::NoDefault, true ),
plrList(players), plnetList(planets), neutral(neutralPlayer),
map(pmap)

@ -18,7 +18,7 @@ class NewGameDlg : public KDialogBase
TQ_OBJECT
public:
NewGameDlg( TQWidget *tqparent, Map *map, PlayerList *playerList,
NewGameDlg( TQWidget *parent, Map *map, PlayerList *playerList,
Player *neutralPlayer, PlanetList *planetList );
int turns( void );

@ -9,8 +9,8 @@
#include <kglobal.h>
#include "planet_info.moc"
PlanetInfo::PlanetInfo( TQWidget *tqparent, TQPalette palette )
: TQFrame( tqparent )
PlanetInfo::PlanetInfo( TQWidget *parent, TQPalette palette )
: TQFrame( parent )
{
setPalette( palette );

@ -26,7 +26,7 @@ class PlanetInfo : public TQFrame
TQ_OBJECT
public:
PlanetInfo( TQWidget *tqparent, TQPalette palette );
PlanetInfo( TQWidget *parent, TQPalette palette );
virtual ~PlanetInfo();
void setPlanetList( PlanetList &newPlanets );

@ -6,7 +6,7 @@
#include "scoredlg.h"
ScoreDlgListViewItem::ScoreDlgListViewItem(TQListView *tqparent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5, TQString s6) : TQListViewItem(tqparent, s1, s2, s3, s4, s5, s6)
ScoreDlgListViewItem::ScoreDlgListViewItem(TQListView *parent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5, TQString s6) : TQListViewItem(parent, s1, s2, s3, s4, s5, s6)
{
}
@ -27,8 +27,8 @@ int ScoreDlgListViewItem::compare(TQListViewItem *i, int col, bool) const
}
ScoreDlg::ScoreDlg( TQWidget *tqparent, const TQString& title, PlayerList *players )
: TQDialog(tqparent, "ScoreDlg", true ), plrList(players)
ScoreDlg::ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players )
: TQDialog(parent, "ScoreDlg", true ), plrList(players)
{
setCaption( kapp->makeStdCaption(title) );

@ -10,7 +10,7 @@
class ScoreDlgListViewItem : public TQListViewItem
{
public:
ScoreDlgListViewItem(TQListView *tqparent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5, TQString s6);
ScoreDlgListViewItem(TQListView *parent, TQString s1, TQString s2, TQString s3, TQString s4, TQString s5, TQString s6);
int compare(TQListViewItem *i, int col, bool) const;
};
@ -18,7 +18,7 @@ class ScoreDlg : public TQDialog
{
public:
ScoreDlg( TQWidget *tqparent, const TQString& title, PlayerList *players );
ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players );
private:
void init();

@ -54,7 +54,7 @@ public:
enum Rank { None = 0, Ace = 1, Two, Three, Four, Five, Six, Seven,
Eight, Nine, Ten, Jack, Queen, King };
Card( Rank r, Suit s, TQCanvas *tqparent=0);
Card( Rank r, Suit s, TQCanvas *parent=0);
virtual ~Card();
// Properties of the card.

@ -4,8 +4,8 @@
#include <assert.h>
#include "cardmaps.h"
Clock::Clock( KMainWindow* tqparent, const char *name )
: Dealer( tqparent, name )
Clock::Clock( KMainWindow* parent, const char *name )
: Dealer( parent, name )
{
const int dist_x = cardMap::CARDX() * 11 / 10 + 1;
const int dist_y = cardMap::CARDY() * 11 / 10 + 1;
@ -85,7 +85,7 @@ static class LocalDealerInfo11 : public DealerInfo
{
public:
LocalDealerInfo11() : DealerInfo(I18N_NOOP("G&randfather's Clock"), 11) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Clock(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Clock(parent); }
} gfi11;
#include "clock.moc"

@ -8,7 +8,7 @@ class Clock : public Dealer {
TQ_OBJECT
public:
Clock( KMainWindow* tqparent=0, const char* name=0);
Clock( KMainWindow* parent=0, const char* name=0);
virtual bool checkAdd ( int checkIndex, const Pile *c1, const CardList& c2) const;
virtual bool startAutoDrop() { return false; }

@ -27,8 +27,8 @@
#include <assert.h>
#include "cardmaps.h"
Computation::Computation( KMainWindow *tqparent, const char *name )
:Dealer( tqparent, name)
Computation::Computation( KMainWindow *parent, const char *name )
:Dealer( parent, name)
{
deck = Deck::new_deck(this);
deck->hide();
@ -114,7 +114,7 @@ static class LocalDealerInfo6 : public DealerInfo
{
public:
LocalDealerInfo6() : DealerInfo(I18N_NOOP("&Calculation"), 6) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Computation(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Computation(parent); }
} ldi6;
#include "computation.moc"

@ -33,7 +33,7 @@ class Computation : public Dealer {
TQ_OBJECT
public:
Computation( KMainWindow *tqparent = 0, const char *name=0 );
Computation( KMainWindow *parent = 0, const char *name=0 );
virtual void restart();

@ -116,7 +116,7 @@ void Dealer::setupActions() {
ahint = new KAction( i18n("&Hint"), TQString::tqfromLatin1("wizard"), Key_H, TQT_TQOBJECT(this),
TQT_SLOT(hint()),
tqparent()->actionCollection(), "game_hint");
parent()->actionCollection(), "game_hint");
actionlist.append(ahint);
} else
ahint = 0;
@ -124,7 +124,7 @@ void Dealer::setupActions() {
if (actions() & Dealer::Demo) {
ademo = new KToggleAction( i18n("&Demo"), TQString::tqfromLatin1("1rightarrow"), CTRL+Key_D, TQT_TQOBJECT(this),
TQT_SLOT(toggleDemo()),
tqparent()->actionCollection(), "game_demo");
parent()->actionCollection(), "game_demo");
actionlist.append(ademo);
} else
ademo = 0;
@ -132,12 +132,12 @@ void Dealer::setupActions() {
if (actions() & Dealer::Redeal) {
aredeal = new KAction (i18n("&Redeal"), TQString::tqfromLatin1("queue"), 0, TQT_TQOBJECT(this),
TQT_SLOT(redeal()),
tqparent()->actionCollection(), "game_redeal");
parent()->actionCollection(), "game_redeal");
actionlist.append(aredeal);
} else
aredeal = 0;
tqparent()->guiFactory()->plugActionList( tqparent(), TQString::tqfromLatin1("game_actions"), actionlist);
parent()->guiFactory()->plugActionList( parent(), TQString::tqfromLatin1("game_actions"), actionlist);
}
Dealer::~Dealer()
@ -145,7 +145,7 @@ Dealer::~Dealer()
if (!_won)
countLoss();
clearHints();
tqparent()->guiFactory()->unplugActionList( tqparent(), TQString::tqfromLatin1("game_actions"));
parent()->guiFactory()->unplugActionList( parent(), TQString::tqfromLatin1("game_actions"));
while (!piles.isEmpty())
delete piles.first(); // removes itself
@ -154,9 +154,9 @@ Dealer::~Dealer()
s_instance = 0;
}
KMainWindow *Dealer::tqparent() const
KMainWindow *Dealer::parent() const
{
return dynamic_cast<KMainWindow*>(TQCanvasView::tqparent());
return dynamic_cast<KMainWindow*>(TQCanvasView::parent());
}
@ -735,7 +735,7 @@ State *Dealer::getState()
s.it = c;
s.source = c->source();
if (!s.source) {
kdDebug(11111) << c->name() << " has no tqparent\n";
kdDebug(11111) << c->name() << " has no parent\n";
assert(false);
}
s.source_index = c->source()->indexOf(c);

@ -35,7 +35,7 @@ public:
}
const char *name;
uint gameindex;
virtual Dealer *createGame(KMainWindow *tqparent) = 0;
virtual Dealer *createGame(KMainWindow *parent) = 0;
};
class CardState;
@ -61,7 +61,7 @@ class Dealer: public TQCanvasView
public:
Dealer( KMainWindow* tqparent = 0, const char* name = 0 );
Dealer( KMainWindow* parent = 0, const char* name = 0 );
virtual ~Dealer();
static const Dealer *instance();
@ -171,7 +171,7 @@ protected:
// it's not const because it changes the random seed
virtual MoveHint *chooseHint();
KMainWindow *tqparent() const;
KMainWindow *parent() const;
bool waiting() const { return _waiting != 0; }
void setWaiting(bool w);

@ -10,8 +10,8 @@ const int NumberOfCards = 52;
Deck *Deck::my_deck = 0;
Deck::Deck( Dealer* tqparent, int m, int s )
: Pile( 0, tqparent ), mult( m )
Deck::Deck( Dealer* parent, int m, int s )
: Pile( 0, parent ), mult( m )
{
_deck = new Card * [mult*NumberOfCards];
Q_CHECK_PTR (_deck);
@ -44,9 +44,9 @@ Deck::~Deck()
// ----------------------------------------------------------------
Deck *Deck::new_deck( Dealer *tqparent, int m, int s )
Deck *Deck::new_deck( Dealer *parent, int m, int s )
{
my_deck = new Deck(tqparent, m, s);
my_deck = new Deck(parent, m, s);
return my_deck;
}

@ -13,11 +13,11 @@ class Deck: public Pile
{
private:
Deck( Dealer* tqparent = 0, int m = 1, int s = 4 );
Deck( Dealer* parent = 0, int m = 1, int s = 4 );
virtual ~Deck();
public:
static Deck *new_deck( Dealer *tqparent = 0, int m = 1, int s = 4 );
static Deck *new_deck( Dealer *parent = 0, int m = 1, int s = 4 );
static Deck *deck() { return my_deck; }
static const long n;

@ -5,8 +5,8 @@
#include <assert.h>
#include "cardmaps.h"
HorLeftPile::HorLeftPile( int _index, Dealer* tqparent)
: Pile(_index, tqparent)
HorLeftPile::HorLeftPile( int _index, Dealer* parent)
: Pile(_index, parent)
{
// TODO: create a pile that moves the cards together when filling space
setHSpread( cardMap::CARDX() / 11 + 1 );
@ -27,8 +27,8 @@ void HorLeftPile::initSizes()
}
Fortyeight::Fortyeight( KMainWindow* tqparent, const char* name)
: Dealer(tqparent,name)
Fortyeight::Fortyeight( KMainWindow* parent, const char* name)
: Dealer(parent,name)
{
deck = Deck::new_deck(this, 2);
@ -194,7 +194,7 @@ static class LocalDealerInfo8 : public DealerInfo
{
public:
LocalDealerInfo8() : DealerInfo(I18N_NOOP("Forty && &Eight"), 8) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Fortyeight(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Fortyeight(parent); }
} ldi9;
//-------------------------------------------------------------------------//

@ -9,7 +9,7 @@ class HorLeftPile : public Pile
TQ_OBJECT
public:
HorLeftPile( int _index, Dealer* tqparent = 0);
HorLeftPile( int _index, Dealer* parent = 0);
virtual TQSize cardOffset( bool _spread, bool _facedown, const Card *before) const;
virtual void initSizes();
};
@ -20,7 +20,7 @@ class Fortyeight : public Dealer
TQ_OBJECT
public:
Fortyeight( KMainWindow* tqparent=0, const char* name=0);
Fortyeight( KMainWindow* parent=0, const char* name=0);
virtual bool isGameLost() const;
public slots:

@ -67,7 +67,7 @@ program with some effort on the programmer's part.
This option will display the moves in standard notation in which every
move consists of two characters and there are ten moves in a line. Naturally,
this option will only become aptqparent if the display moves is specified.
this option will only become apparent if the display moves is specified.
(it does not implicitly specify it, though).
For more information regarding standard notation refer to the following
@ -89,7 +89,7 @@ are needed to move from one to another. The standard notation
option applies to it to.
-pi --display-tqparent-iter
-pi --display-parent-iter
This option (assuming the -s and -i options are specified) will also
display the iteration index of the state from which the current state
@ -217,34 +217,34 @@ Freecell Tests:
'2' - put freecell cards on top of stacks.
'3' - put non-top stack cards in the foundations.
'4' - move stack cards to different stacks.
'5' - move stack cards to a tqparent card on the same stack.
'5' - move stack cards to a parent card on the same stack.
'6' - move sequences of cards onto free stacks.
'7' - put freecell cards on empty stacks.
'8' - move cards to a different tqparent.
'8' - move cards to a different parent.
'9' - empty an entire stack into the freecells.
Atomic Freecell Tests:
'A' - move a stack card to an empty stack.
'B' - move a stack card to a tqparent on a different stack.
'B' - move a stack card to a parent on a different stack.
'C' - move a stack card to a freecell.
'D' - move a freecell card to a tqparent.
'D' - move a freecell card to a parent.
'E' - move a freecell card to an empty stack.
Simple Simon Tests:
'a' - move a full sequence to the foundations.
'b' - move a sequence to a true tqparent of his.
'c' - move a whole stack sequence to a false tqparent (in order to clear
'b' - move a sequence to a true parent of his.
'c' - move a whole stack sequence to a false parent (in order to clear
the stack)
'd' - move a sequence to a true tqparent that has some cards above it.
'e' - move a sequence with some cards above it to a true tqparent.
'f' - move a sequence with a junk sequence above it to a true tqparent that
'd' - move a sequence to a true parent that has some cards above it.
'e' - move a sequence with some cards above it to a true parent.
'f' - move a sequence with a junk sequence above it to a true parent that
has some cards above it.
'g' - move a whole stack sequence to a false tqparent which has some
'g' - move a whole stack sequence to a false parent which has some
cards above it.
'h' - move a sequence to a tqparent on the same stack.
'h' - move a sequence to a parent on the same stack.
Manipulating the tests order can be very helpful to the quick solution
of a given board. If you found that a certain board cannot be solved in
@ -332,7 +332,7 @@ used in all the normal scans.
--reparent-states
This option specifies that states that were encountered whose depth in the
states graph can be improved should be reparented to the new tqparent. This
states graph can be improved should be reparented to the new parent. This
option can possibly make solutions shorter.

@ -63,7 +63,7 @@
if (hash_value_int < 0) \
{ \
/* \
* This is a bit tqmask that nullifies the sign bit of the \
* This is a bit mask that nullifies the sign bit of the \
* number so it will always be positive \
* */ \
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1))); \
@ -92,7 +92,7 @@
if (hash_value_int < 0) \
{ \
/* \
* This is a bit tqmask that nullifies the sign bit of the \
* This is a bit mask that nullifies the sign bit of the \
* number so it will always be positive \
* */ \
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1))); \
@ -333,7 +333,7 @@ static GCC_INLINE void freecell_solver_cache_stacks(
if (hash_value_int < 0)
{
/*
* This is a bit tqmask that nullifies the sign bit of the
* This is a bit mask that nullifies the sign bit of the
* number so it will always be positive
* */
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1)));
@ -437,7 +437,7 @@ void freecell_solver_cache_talon(
if (hash_value_int < 0)
{
/*
* This is a bit tqmask that nullifies the sign bit of the
* This is a bit mask that nullifies the sign bit of the
* number so it will always be positive
* */
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1)));
@ -529,9 +529,9 @@ GCC_INLINE int freecell_solver_check_and_add_state(
if (check)
{
/* The new state was not found in the cache, and it was already inserted */
if (new_state->tqparent)
if (new_state->parent)
{
new_state->tqparent->num_active_tqchildren++;
new_state->parent->num_active_tqchildren++;
}
instance->num_states_in_collection++;

@ -170,7 +170,7 @@ typedef struct freecell_solver_instance
* The debug_iter_output variables provide a programmer programmable way
* to debug the algorithm while it is running. This works well for DFS
* and Soft-DFS scans but at present support for A* and BFS is not
* too good, as its hard to tell which state came from which tqparent state.
* too good, as its hard to tell which state came from which parent state.
*
* debug_iter_output is a flag that indicates whether to use this feature
* at all.

@ -53,7 +53,7 @@ SFO_hash_t * freecell_solver_hash_init(
hash = (SFO_hash_t *)malloc(sizeof(SFO_hash_t));
hash->size = size;
hash->size_bittqmask = size-1;
hash->size_bitmask = size-1;
hash->num_elems = 0;
@ -87,7 +87,7 @@ void * freecell_solver_hash_insert(
SFO_hash_symlink_item_t * item, * last_item;
/* Get the index of the appropriate chain in the hash table */
place = hash_value & (hash->size_bittqmask);
place = hash_value & (hash->size_bitmask);
list = &(hash->entries[place]);
/* If first_item is non-existent */
@ -220,7 +220,7 @@ static void SFO_hash_rehash(
SFO_hash_t * hash
)
{
int old_size, new_size, new_size_bittqmask;
int old_size, new_size, new_size_bitmask;
int i;
#if 0
SFO_hash_t * new_hash;
@ -242,7 +242,7 @@ static void SFO_hash_rehash(
old_size = hash->size;
new_size = old_size << 1;
new_size_bittqmask = new_size - 1;
new_size_bitmask = new_size - 1;
new_entries = calloc(new_size, sizeof(SFO_hash_symlink_t));
@ -254,7 +254,7 @@ static void SFO_hash_rehash(
while(item != NULL)
{
/* The place in the new hash table */
place = item->hash_value & new_size_bittqmask;
place = item->hash_value & new_size_bitmask;
/* Store the next item in the linked list in a safe place,
so we can retrieve it after the assignment */
@ -280,7 +280,7 @@ static void SFO_hash_rehash(
#endif
hash->entries = new_entries;
hash->size = new_size;
hash->size_bittqmask = new_size_bittqmask;
hash->size_bitmask = new_size_bitmask;
}
#else

@ -53,8 +53,8 @@ struct SFO_hash_struct
/* The size of the hash table */
int size;
/* A bit tqmask that extract the lowest bits out of the hash value */
int size_bittqmask;
/* A bit mask that extract the lowest bits out of the hash value */
int size_bitmask;
/* The number of elements stored inside the hash */
int num_elems;
/* A context to pass to the comparison function */

@ -243,7 +243,7 @@ int freecell_solver_sfs_move_freecell_cards_on_top_of_stacks(
{
src_card = fcs_freecell_card(state, fc);
/* If the freecell is not empty and dest_card is its tqparent
/* If the freecell is not empty and dest_card is its parent
* */
if ( (fcs_card_card_num(src_card) != 0) &&
fcs_is_parent_card(src_card,dest_card) )
@ -533,7 +533,7 @@ int freecell_solver_sfs_move_stack_cards_to_a_parent_on_the_same_stack(
sequences_are_built_by = instance->sequences_are_built_by;
/*
* Now let's try to move a stack card to a tqparent card which is found
* Now let's try to move a stack card to a parent card which is found
* on the same stack.
* */
for (stack=0;stack<state_stacks_num;stack++)
@ -547,7 +547,7 @@ int freecell_solver_sfs_move_stack_cards_to_a_parent_on_the_same_stack(
card = fcs_stack_card(state, stack, c);
/* Do not move cards that are already found above a suitable tqparent */
/* Do not move cards that are already found above a suitable parent */
a = 1;
if (c != 0)
{
@ -1368,7 +1368,7 @@ int freecell_solver_sfs_move_cards_to_a_different_parent(
fcs_move_init(temp_move);
/* This time try to move cards that are already on top of a tqparent to a different tqparent */
/* This time try to move cards that are already on top of a parent to a different parent */
for (stack=0;stack<state_stacks_num;stack++)
{
@ -1398,7 +1398,7 @@ int freecell_solver_sfs_move_cards_to_a_different_parent(
card = fcs_stack_card(state, stack, c);
/* Do not move cards that are already found above a suitable tqparent */
/* Do not move cards that are already found above a suitable parent */
a = 1;
if (c != 0)
{
@ -1697,7 +1697,7 @@ int freecell_solver_sfs_yukon_move_card_to_parent(
if (fcs_is_parent_card(card, dest_card))
{
/* We can move it there - now let's check to see
* if it is already above a suitable tqparent. */
* if it is already above a suitable parent. */
if ((c == 0) ||
(! fcs_is_parent_card(card, fcs_stack_card(state, stack, c-1))))
{

@ -796,7 +796,7 @@ static void trace_solution(
s1 = instance->final_state;
/* Retrace the step from the current state to its parents */
while (s1->tqparent != NULL)
while (s1->parent != NULL)
{
/* Mark the state as part of the non-optimized solution */
s1->visited |= FCS_VISITED_IN_SOLUTION_PATH;
@ -811,8 +811,8 @@ static void trace_solution(
}
/* Duplicate the state to a freshly malloced memory */
/* Move to the tqparent state */
s1 = s1->tqparent;
/* Move to the parent state */
s1 = s1->parent;
}
/* There's one more state than there are move stacks */
s1->visited |= FCS_VISITED_IN_SOLUTION_PATH;
@ -915,7 +915,7 @@ int freecell_solver_solve_instance(
state_copy_ptr->depth = 0;
state_copy_ptr->moves_to_parent = NULL;
state_copy_ptr->visited = 0;
state_copy_ptr->tqparent = NULL;
state_copy_ptr->parent = NULL;
memset(&(state_copy_ptr->scan_visited), '\0', sizeof(state_copy_ptr->scan_visited));
instance->state_copy_ptr = state_copy_ptr;

@ -19,7 +19,7 @@ Note:
#define hashsize(n) ((ub4)1<<(n))
#define hashtqmask(n) (hashsize(n)-1)
#define hashmask(n) (hashsize(n)-1)
/*
--------------------------------------------------------------------

@ -169,8 +169,8 @@ help_screen_t help_screens[] = {
"-snx --standard-notation-extended\n"
" Display the moves in extended standard notation while specifying the\n"
" number of cards moved if applicable\n"
"-pi --display-tqparent-iter \n"
" Display the index of the tqparent iteration of each state in the\n"
"-pi --display-parent-iter \n"
" Display the index of the parent iteration of each state in the\n"
" run-time dump.\n"
"\n"
"--freecells-num [Freecells\' Number]\n"
@ -227,33 +227,33 @@ help_screen_t help_screens[] = {
" '2' - put freecell cards on top of stacks.\n"
" '3' - put non-top stack cards in the foundations.\n"
" '4' - move stack cards to different stacks.\n"
" '5' - move stack cards to a tqparent card on the same stack.\n"
" '5' - move stack cards to a parent card on the same stack.\n"
" '6' - move sequences of cards onto free stacks.\n"
" '7' - put freecell cards on empty stacks.\n"
" '8' - move cards to a different tqparent.\n"
" '8' - move cards to a different parent.\n"
" '9' - empty an entire stack into the freecells.\n"
"\n"
" Atomic Freecell Tests:\n"
"\n"
" 'A' - move a stack card to an empty stack.\n"
" 'B' - move a stack card to a tqparent on a different stack.\n"
" 'B' - move a stack card to a parent on a different stack.\n"
" 'C' - move a stack card to a freecell.\n"
" 'D' - move a freecel card to a tqparent.\n"
" 'D' - move a freecel card to a parent.\n"
" 'E' - move a freecel card to an empty stack.\n"
"\n"
" Simple Simon Tests:\n"
"\n"
" 'a' - move a full sequence to the foundations.\n"
" 'b' - move a sequence to a true tqparent of his.\n"
" 'c' - move a whole stack sequence to a false tqparent (in order to\n"
" 'b' - move a sequence to a true parent of his.\n"
" 'c' - move a whole stack sequence to a false parent (in order to\n"
" clear the stack)\n"
" 'd' - move a sequence to a true tqparent that has some cards above it.\n"
" 'e' - move a sequence with some cards above it to a true tqparent.\n"
" 'f' - move a sequence with a junk sequence above it to a true tqparent\n"
" 'd' - move a sequence to a true parent that has some cards above it.\n"
" 'e' - move a sequence with some cards above it to a true parent.\n"
" 'f' - move a sequence with a junk sequence above it to a true parent\n"
" that has some cards above it.\n"
" 'g' - move a whole stack sequence to a false tqparent which has some\n"
" 'g' - move a whole stack sequence to a false parent which has some\n"
" cards above it.\n"
" 'h' - move a sequence to a tqparent on the same stack.\n"
" 'h' - move a sequence to a parent on the same stack.\n"
"\n"
" Tests are grouped with parenthesis or square brackets. Each group\n"
" will be randomized as a whole by the random-dfs scan.\n"
@ -313,7 +313,7 @@ help_screen_t help_screens[] = {
"\n"
"\n"
"--reparent-states\n"
" Retqparent states that have a larger depth than that of the state\n"
" Reparent states that have a larger depth than that of the state\n"
" from which they were reached a posteriori.\n"
"--calc-real-depth\n"
" If --reparent-states is enabled, then explictly calculate the real\n"
@ -498,7 +498,7 @@ static int cmd_line_callback(
dc->display_moves = 1;
dc->display_states = 1;
}
else if ((!strcmp(argv[arg], "-pi")) || (!strcmp(argv[arg], "--display-tqparent-iter")))
else if ((!strcmp(argv[arg], "-pi")) || (!strcmp(argv[arg], "--display-parent-iter")))
{
dc->display_parent_iter_num = 1;
}
@ -588,7 +588,7 @@ static char * known_parameters[] = {
"-sn", "--standard-notation",
"-snx", "--standard-notation-extended",
"-sam", "--display-states-and-moves",
"-pi", "--display-tqparent-iter",
"-pi", "--display-parent-iter",
"--reset",
NULL
};

@ -73,7 +73,7 @@ int freecell_solver_PQueuePush( PTQUEUE *pq, void *item, pq_rating_t r)
i = (++CurrentSize);
/* while the tqparent of the space we're putting the new node into is worse than
/* while the parent of the space we're putting the new node into is worse than
our new node, swap the space with the worse node. We keep doing that until we
get to a worse node or until we get to the top

@ -43,7 +43,7 @@ typedef struct _PTQUEUE
/* given an index to any element in a binary tree stored in a linear array with the root at 1 and
a "sentinel" value at 0 these macros are useful in making the code clearer */
/* the tqparent is always given by index/2 */
/* the parent is always given by index/2 */
#define PTQ_PARENT_INDEX(i) ((i)>>1)
#define PTQ_FIRST_ENTRY (1)

@ -406,7 +406,7 @@ int freecell_solver_soft_dfs_or_random_dfs_do_solve_or_resume(
freecell_solver_increase_dfs_max_depth(soft_thread);
/* Initialize the initial state to indicate it is the first */
ptr_state_with_locations_orig->tqparent = NULL;
ptr_state_with_locations_orig->parent = NULL;
ptr_state_with_locations_orig->moves_to_parent = NULL;
ptr_state_with_locations_orig->depth = 0;
@ -692,7 +692,7 @@ int freecell_solver_soft_dfs_or_random_dfs_do_solve_or_resume(
ptr_recurse_into_state_with_locations->visited_iter = instance->num_times;
#if 0
ptr_recurse_into_state_with_locations->tqparent = ptr_state_with_locations;
ptr_recurse_into_state_with_locations->parent = ptr_state_with_locations;
#endif
/*
@ -958,7 +958,7 @@ int freecell_solver_a_star_or_bfs_do_solve_or_resume(
if (!resume)
{
/* Initialize the first element to indicate it is the first */
ptr_state_with_locations_orig->tqparent = NULL;
ptr_state_with_locations_orig->parent = NULL;
ptr_state_with_locations_orig->moves_to_parent = NULL;
ptr_state_with_locations_orig->depth = 0;
}
@ -1027,9 +1027,9 @@ int freecell_solver_a_star_or_bfs_do_solve_or_resume(
ptr_state_with_locations->depth,
(void*)instance,
ptr_state_with_locations,
((ptr_state_with_locations->tqparent == NULL) ?
((ptr_state_with_locations->parent == NULL) ?
0 :
ptr_state_with_locations->tqparent->visited_iter
ptr_state_with_locations->parent->visited_iter
)
);
}

@ -19,16 +19,16 @@
#endif
#define fcs_is_ss_false_parent(tqparent, child) \
(fcs_card_card_num(tqparent) == fcs_card_card_num(child)+1)
#define fcs_is_ss_false_parent(parent, child) \
(fcs_card_card_num(parent) == fcs_card_card_num(child)+1)
#define fcs_suit_is_ss_true_parent(parent_suit, child_suit) \
((parent_suit) == (child_suit))
#define fcs_is_ss_true_parent(tqparent, child) \
#define fcs_is_ss_true_parent(parent, child) \
( \
fcs_is_ss_false_parent(tqparent,child) && \
(fcs_suit_is_ss_true_parent(fcs_card_suit(tqparent),fcs_card_suit(child))) \
fcs_is_ss_false_parent(parent,child) && \
(fcs_suit_is_ss_true_parent(fcs_card_suit(parent),fcs_card_suit(child))) \
)
/*
@ -185,7 +185,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_true_parent(
if (cards_num > 0)
{
/* Loop on the cards in the stack and try to look for a true
* tqparent on top one of the stacks */
* parent on top one of the stacks */
card = fcs_stack_card(state,stack,cards_num-1);
card_num = fcs_card_card_num(card);
suit = fcs_card_suit(card);
@ -208,7 +208,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_true_parent(
(fcs_card_card_num(dest_card) == (card_num+1))
)
{
/* This is a suitable tqparent - let's check if we
/* This is a suitable parent - let's check if we
* have enough empty stacks to make the move feasible */
if (calc_max_sequence_move(0, num_freestacks) >= num_true_seqs)
{
@ -334,7 +334,7 @@ int freecell_solver_sfs_simple_simon_move_whole_stack_sequence_to_false_parent(
(fcs_is_ss_false_parent(dest_card, card))
)
{
/* This is a suitable tqparent - let's check if we
/* This is a suitable parent - let's check if we
* have enough empty stacks to make the move feasible */
if (calc_max_sequence_move(0, num_freestacks) >= num_true_seqs)
{
@ -387,7 +387,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_true_parent_with_some_card
* dest_cards_num - the number of cards in "ds"
* dc - the index of the current card in "ds".
* num_separate_false_seqs - this variable tells how many distinct false
* sequences exist above the true tqparent
* sequences exist above the true parent
* above_num_true_seqs[] - the number of true sequences in each false
* sequence
* seq_points[] - the separation points of the false sequences (i.e: where
@ -451,7 +451,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_true_parent_with_some_card
(fcs_card_card_num(dest_card) == (card_num+1))
)
{
/* This is a suitable tqparent - let's check if there's a sequence above it. */
/* This is a suitable parent - let's check if there's a sequence above it. */
/*
* above_c - the height of the card that is to be checked.
@ -504,7 +504,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_true_parent_with_some_card
int clear_junk_dest_stack = -1;
/* Let's try to find a suitable tqparent on top one of the stacks */
/* Let's try to find a suitable parent on top one of the stacks */
for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++
@ -573,7 +573,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_true_parent_with_some_card
/*
* We can do it - so let's move everything.
* Notice that we only put the child in a different stack
* then the tqparent and let it move to the tqparent in the
* then the parent and let it move to the parent in the
* next iteration of the program
* */
@ -743,7 +743,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_with_some_cards_above_to_true
(fcs_card_card_num(dest_card) == (card_num+1))
)
{
/* This is a suitable tqparent - let's check if we
/* This is a suitable parent - let's check if we
* have enough empty stacks to make the move feasible */
for(a=0;a<state_stacks_num;a++)
@ -761,7 +761,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_with_some_cards_above_to_true
int clear_junk_dest_stack = -1;
/* Let's try to find a suitable tqparent on top one of the stacks */
/* Let's try to find a suitable parent on top one of the stacks */
for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++
@ -1013,7 +1013,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_with_junk_seq_above_to_true_p
(fcs_card_card_num(dest_card) == (card_num+1))
)
{
/* This is a suitable tqparent - let's check if there's a sequence above it. */
/* This is a suitable parent - let's check if there's a sequence above it. */
int above_c;
fcs_card_t above_card, up_above_card;
@ -1068,7 +1068,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_with_junk_seq_above_to_true_p
above_num_true_seqs[false_seq_index]
);
/* Let's try to find a suitable tqparent on top one of the stacks */
/* Let's try to find a suitable parent on top one of the stacks */
for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++
@ -1218,7 +1218,7 @@ int freecell_solver_sfs_simple_simon_move_whole_stack_sequence_to_false_parent_w
* dest_cards_num - the number of cards in it.
* dc - the height of the card in "ds".
* num_separate_false_seqs - this variable tells how many distinct false
* sequences exist above the false tqparent
* sequences exist above the false parent
* above_num_true_seqs[] - the number of true sequences in each false
* sequence
* seq_points[] - the separation points of the false sequences (i.e: where
@ -1291,7 +1291,7 @@ int freecell_solver_sfs_simple_simon_move_whole_stack_sequence_to_false_parent_w
(fcs_card_card_num(dest_card) == (card_num+1))
)
{
/* This is a suitable tqparent - let's check if there's a sequence above it. */
/* This is a suitable parent - let's check if there's a sequence above it. */
int above_c;
fcs_card_t above_card, up_above_card;
@ -1341,7 +1341,7 @@ int freecell_solver_sfs_simple_simon_move_whole_stack_sequence_to_false_parent_w
above_num_true_seqs[false_seq_index];
/* Let's try to find a suitable tqparent on top one of the stacks */
/* Let's try to find a suitable parent on top one of the stacks */
for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++
@ -1380,7 +1380,7 @@ int freecell_solver_sfs_simple_simon_move_whole_stack_sequence_to_false_parent_w
if (false_seq_index == num_separate_false_seqs)
{
/* This is a suitable tqparent - let's check if we
/* This is a suitable parent - let's check if we
* have enough empty stacks to make the move feasible */
if (calc_max_sequence_move(0, num_freestacks) >= num_true_seqs)
{
@ -1468,7 +1468,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_parent_on_the_same_stack(
cards_num = fcs_stack_len(state, stack);
if (cards_num > 2)
{
/* Search for a tqparent card */
/* Search for a parent card */
for(pc=0; pc < cards_num-1 ; pc++)
{
parent_card = fcs_stack_card(state, stack, pc);
@ -1492,7 +1492,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_parent_on_the_same_stack(
)
)
{
/* We have a matching tqparent and child cards */
/* We have a matching parent and child cards */
#if 0
printf("Stack %i, Parent %i, Child %i\n", stack, pc, cc);
fflush(stdout);
@ -1559,7 +1559,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_parent_on_the_same_stack(
above_num_true_seqs[num_separate_false_seqs] = child_num_true_seqs;
seq_points[num_separate_false_seqs++] = cc;
/* Add the cards between the tqparent and the child to the seq_points */
/* Add the cards between the parent and the child to the seq_points */
above_card = fcs_stack_card(state, stack, cc-1);
above_num_true_seqs[num_separate_false_seqs] = 1;
@ -1599,7 +1599,7 @@ int freecell_solver_sfs_simple_simon_move_sequence_to_parent_on_the_same_stack(
int clear_junk_dest_stack = -1;
/* Let's try to find a suitable tqparent on top one of the stacks */
/* Let's try to find a suitable parent on top one of the stacks */
for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++

@ -72,7 +72,7 @@ struct fcs_struct_state_with_locations_t
fcs_state_t s;
int stack_locs[MAX_NUM_STACKS];
int fc_locs[MAX_NUM_FREECELLS];
struct fcs_struct_state_with_locations_t * tqparent;
struct fcs_struct_state_with_locations_t * parent;
fcs_move_stack_t * moves_to_parent;
int depth;
int visited;
@ -232,7 +232,7 @@ struct fcs_struct_state_with_locations_t
fcs_state_t s;
char stack_locs[MAX_NUM_STACKS];
char fc_locs[MAX_NUM_FREECELLS];
struct fcs_struct_state_with_locations_t * tqparent;
struct fcs_struct_state_with_locations_t * parent;
fcs_move_stack_t * moves_to_parent;
int depth;
int visited;
@ -484,7 +484,7 @@ struct fcs_struct_state_with_locations_t
fcs_state_t s;
fcs_locs_t stack_locs[MAX_NUM_STACKS];
fcs_locs_t fc_locs[MAX_NUM_FREECELLS];
struct fcs_struct_state_with_locations_t * tqparent;
struct fcs_struct_state_with_locations_t * parent;
fcs_move_stack_t * moves_to_parent;
int depth;
/*

@ -26,19 +26,19 @@ typedef int (*freecell_solver_solve_for_state_test_t)(
extern freecell_solver_solve_for_state_test_t freecell_solver_sfs_tests[FCS_TESTS_NUM];
/*
* This macro determines if child can be placed above tqparent.
* This macro determines if child can be placed above parent.
*
* The variable sequences_are_built_by has to be initialized to
* the sequences_are_built_by member of the instance.
*
* */
#define fcs_is_parent_card(child, tqparent) \
((fcs_card_card_num(child)+1 == fcs_card_card_num(tqparent)) && \
#define fcs_is_parent_card(child, parent) \
((fcs_card_card_num(child)+1 == fcs_card_card_num(parent)) && \
((sequences_are_built_by == FCS_SEQ_BUILT_BY_RANK) ? \
1 : \
((sequences_are_built_by == FCS_SEQ_BUILT_BY_SUIT) ? \
(fcs_card_suit(child) == fcs_card_suit(tqparent)) : \
((fcs_card_suit(child) & 0x1) != (fcs_card_suit(tqparent)&0x1)) \
(fcs_card_suit(child) == fcs_card_suit(parent)) : \
((fcs_card_suit(child) & 0x1) != (fcs_card_suit(parent)&0x1)) \
)) \
)
@ -58,7 +58,7 @@ extern freecell_solver_solve_for_state_test_t freecell_solver_sfs_tests[FCS_TEST
/* Count the number of states until the original state. */ \
while(ptr_state != NULL) \
{ \
ptr_state = ptr_state->tqparent; \
ptr_state = ptr_state->parent; \
this_real_depth++; \
} \
this_real_depth--; \
@ -68,14 +68,14 @@ extern freecell_solver_solve_for_state_test_t freecell_solver_sfs_tests[FCS_TEST
{ \
ptr_state->depth = this_real_depth; \
this_real_depth--; \
ptr_state = ptr_state->tqparent; \
ptr_state = ptr_state->parent; \
} \
} \
} \
/*
* This macro marks a state as a dead end, and afterwards propogates
* this information to its tqparent and ancestor states.
* this information to its parent and ancestor states.
* */
#define mark_as_dead_end(ptr_state_input) \
{ \
@ -84,7 +84,7 @@ extern freecell_solver_solve_for_state_test_t freecell_solver_sfs_tests[FCS_TEST
fcs_state_with_locations_t * ptr_state = (ptr_state_input); \
/* Mark as a dead end */ \
ptr_state->visited |= FCS_VISITED_DEAD_END; \
ptr_state = ptr_state->tqparent; \
ptr_state = ptr_state->parent; \
if (ptr_state != NULL) \
{ \
/* Decrease the refcount of the state */ \
@ -93,8 +93,8 @@ extern freecell_solver_solve_for_state_test_t freecell_solver_sfs_tests[FCS_TEST
{ \
/* Mark as dead end */ \
ptr_state->visited |= FCS_VISITED_DEAD_END; \
/* Go to its tqparent state */ \
ptr_state = ptr_state->tqparent; \
/* Go to its parent state */ \
ptr_state = ptr_state->parent; \
if (ptr_state == NULL) \
{ \
break; \

@ -58,7 +58,7 @@ extern "C" {
/* Some A* and BFS parameters that need to be initialized in \
* the derived state. \
* */ \
ptr_new_state_with_locations->tqparent = ptr_state_with_locations; \
ptr_new_state_with_locations->parent = ptr_state_with_locations; \
ptr_new_state_with_locations->moves_to_parent = moves; \
/* Make sure depth is consistent with the game graph. \
* I.e: the depth of every newly discovered state is derived from \
@ -103,11 +103,11 @@ fcs_move_stack_push(moves, temp_move); \
{ \
fcs_state_ia_release(hard_thread); \
calculate_real_depth(existing_state); \
/* Re-tqparent the existing state to this one. \
/* Re-parent the existing state to this one. \
* \
* What it means is that if the depth of the state if it \
* can be reached from this one is lower than what it \
* already have, then re-assign its tqparent to this state. \
* already have, then re-assign its parent to this state. \
* */ \
if (reparent && \
(existing_state->depth > ptr_state_with_locations->depth+1)) \
@ -119,15 +119,15 @@ fcs_move_stack_push(moves, temp_move); \
); \
if (!(existing_state->visited & FCS_VISITED_DEAD_END)) \
{ \
if ((--existing_state->tqparent->num_active_tqchildren) == 0) \
if ((--existing_state->parent->num_active_tqchildren) == 0) \
{ \
mark_as_dead_end( \
existing_state->tqparent \
existing_state->parent \
); \
} \
ptr_state_with_locations->num_active_tqchildren++; \
} \
existing_state->tqparent = ptr_state_with_locations; \
existing_state->parent = ptr_state_with_locations; \
existing_state->depth = ptr_state_with_locations->depth + 1; \
} \
fcs_derived_states_list_add_state( \

@ -49,8 +49,8 @@ void FreecellPile::moveCards(CardList &c, Pile *to)
//-------------------------------------------------------------------------//
FreecellBase::FreecellBase( int decks, int stores, int freecells, int fill, bool unlimit,
KMainWindow* tqparent, const char* name)
: Dealer(tqparent,name),
KMainWindow* parent, const char* name)
: Dealer(parent,name),
solver_instance(0), es_filling(fill), solver_ret(FCS_STATE_NOT_BEGAN_YET),
unlimited_move(unlimit)
{
@ -813,12 +813,12 @@ bool FreecellBase::checkRemove(int checkIndex, const Pile *p, const Card *c) con
class Freecell : public FreecellBase
{
public:
Freecell( KMainWindow* tqparent=0, const char* name=0);
Freecell( KMainWindow* parent=0, const char* name=0);
virtual void deal();
};
Freecell::Freecell( KMainWindow* tqparent, const char* name)
: FreecellBase(1, 8, 4, FCS_ES_FILLED_BY_ANY_CARD, false, tqparent, name)
Freecell::Freecell( KMainWindow* parent, const char* name)
: FreecellBase(1, 8, 4, FCS_ES_FILLED_BY_ANY_CARD, false, parent, name)
{
for (int i = 0; i < 8; i++)
store[i]->move(8 + ( cardMap::CARDX() * 11 / 10 + 1 ) * i, 8 + cardMap::CARDY() * 11 / 10);
@ -846,7 +846,7 @@ static class LocalDealerInfo3 : public DealerInfo
{
public:
LocalDealerInfo3() : DealerInfo(I18N_NOOP("&Freecell"), 3) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Freecell(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Freecell(parent); }
} ldi8;
//-------------------------------------------------------------------------//

@ -27,7 +27,7 @@
class FreecellPile : public Pile
{
public:
FreecellPile(int _index, Dealer* tqparent = 0) : Pile(_index, tqparent) {}
FreecellPile(int _index, Dealer* parent = 0) : Pile(_index, parent) {}
virtual void moveCards(CardList &c, Pile *to);
};
@ -38,7 +38,7 @@ class FreecellBase : public Dealer
public:
FreecellBase( int decks, int stores, int freecells, int es_filling, bool unlimited_move,
KMainWindow* tqparent=0, const char* name=0);
KMainWindow* parent=0, const char* name=0);
void moveCards(CardList &c, FreecellPile *from, Pile *to);
TQString solverFormat() const;
virtual ~FreecellBase();

@ -4,8 +4,8 @@
#include <kdebug.h>
#include "cardmaps.h"
HorRightPile::HorRightPile( int _index, Dealer* tqparent)
: Pile(_index, tqparent)
HorRightPile::HorRightPile( int _index, Dealer* parent)
: Pile(_index, parent)
{
}
@ -19,8 +19,8 @@ TQSize HorRightPile::cardOffset( bool _spread, bool, const Card *) const
//-------------------------------------------------------------------------//
Golf::Golf( KMainWindow* tqparent, const char* _name)
: Dealer( tqparent, _name )
Golf::Golf( KMainWindow* parent, const char* _name)
: Dealer( parent, _name )
{
const int dist_x = cardMap::CARDX() * 11 / 10 + 1;
const int pile_dist = 10 + 3 * cardMap::CARDY();
@ -158,7 +158,7 @@ static class LocalDealerInfo13 : public DealerInfo
{
public:
LocalDealerInfo13() : DealerInfo(I18N_NOOP("Go&lf"), 12) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Golf(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Golf(parent); }
} ldi13;
//-------------------------------------------------------------------------//

@ -9,7 +9,7 @@ class HorRightPile : public Pile
TQ_OBJECT
public:
HorRightPile( int _index, Dealer* tqparent = 0);
HorRightPile( int _index, Dealer* parent = 0);
virtual TQSize cardOffset( bool _spread, bool _facedown, const Card *before) const;
};
@ -19,7 +19,7 @@ class Golf : public Dealer
TQ_OBJECT
public:
Golf( KMainWindow* tqparent=0, const char* name=0);
Golf( KMainWindow* parent=0, const char* name=0);
void deal();
virtual void restart();
virtual bool isGameLost() const;

@ -25,8 +25,8 @@
#include <assert.h>
#include "cardmaps.h"
Grandf::Grandf( KMainWindow* tqparent, const char *name )
: Dealer( tqparent, name )
Grandf::Grandf( KMainWindow* parent, const char *name )
: Dealer( parent, name )
{
deck = Deck::new_deck(this);
deck->hide();
@ -221,7 +221,7 @@ static class LocalDealerInfo1 : public DealerInfo
{
public:
LocalDealerInfo1() : DealerInfo(I18N_NOOP("&Grandfather"), 1) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Grandf(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Grandf(parent); }
} gfdi;
#include "grandf.moc"

@ -39,7 +39,7 @@ class Grandf : public Dealer {
TQ_OBJECT
public:
Grandf( KMainWindow* tqparent=0, const char* name=0);
Grandf( KMainWindow* parent=0, const char* name=0);
public slots:
void redeal();

@ -3,8 +3,8 @@
#include "deck.h"
#include "cardmaps.h"
Gypsy::Gypsy( KMainWindow* tqparent, const char *name )
: Dealer( tqparent, name )
Gypsy::Gypsy( KMainWindow* parent, const char *name )
: Dealer( parent, name )
{
const int dist_x = cardMap::CARDX() * 11 / 10 + 1;
const int dist_y = cardMap::CARDY() * 11 / 10 + 1;
@ -111,7 +111,7 @@ static class LocalDealerInfo7 : public DealerInfo
{
public:
LocalDealerInfo7() : DealerInfo(I18N_NOOP("Gy&psy"), 7) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Gypsy(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Gypsy(parent); }
} gyfdi;
#include "gypsy.moc"

@ -14,7 +14,7 @@ class Gypsy : public Dealer {
TQ_OBJECT
public:
Gypsy( KMainWindow* tqparent=0, const char* name=0);
Gypsy( KMainWindow* parent=0, const char* name=0);
virtual bool isGameLost() const;
public slots:

@ -25,8 +25,8 @@
#include "cardmaps.h"
Idiot::Idiot( KMainWindow* tqparent, const char* _name)
: Dealer( tqparent, _name )
Idiot::Idiot( KMainWindow* parent, const char* _name)
: Dealer( parent, _name )
{
// Create the deck to the left.
m_deck = Deck::new_deck( this );
@ -227,7 +227,7 @@ static class LocalDealerInfo2 : public DealerInfo
{
public:
LocalDealerInfo2() : DealerInfo(I18N_NOOP("&Aces Up"), 2) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Idiot(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Idiot(parent); }
} ldi4;

@ -33,7 +33,7 @@ class Idiot: public Dealer
public:
Idiot( KMainWindow* tqparent = 0, const char* name = 0 );
Idiot( KMainWindow* parent = 0, const char* name = 0 );
virtual bool isGameWon() const;

@ -6,8 +6,8 @@
#include "freecell-solver/fcs_enums.h"
#include "cardmaps.h"
Kings::Kings( KMainWindow* tqparent, const char *name )
: FreecellBase( 2, 8, 8, FCS_ES_FILLED_BY_KINGS_ONLY, true, tqparent, name )
Kings::Kings( KMainWindow* parent, const char *name )
: FreecellBase( 2, 8, 8, FCS_ES_FILLED_BY_KINGS_ONLY, true, parent, name )
{
const int dist_x = cardMap::CARDX() * 11 / 10 + 1;
@ -125,7 +125,7 @@ static class LocalDealerInfo12 : public DealerInfo
{
public:
LocalDealerInfo12() : DealerInfo(I18N_NOOP("&The Kings"), 12) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Kings(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Kings(parent); }
} gfdi12;
#endif

@ -12,7 +12,7 @@ class Kings : public FreecellBase {
TQ_OBJECT
public:
Kings( KMainWindow* tqparent=0, const char* name=0);
Kings( KMainWindow* parent=0, const char* name=0);
virtual bool isGameLost() const;
public slots:

@ -32,8 +32,8 @@
class KlondikePile : public Pile
{
public:
KlondikePile( int _index, Dealer* tqparent)
: Pile(_index, tqparent) {}
KlondikePile( int _index, Dealer* parent)
: Pile(_index, parent) {}
void clearSpread() { cardlist.clear(); }
@ -50,8 +50,8 @@ private:
CardList cardlist;
};
Klondike::Klondike( bool easy, KMainWindow* tqparent, const char* _name )
: Dealer( tqparent, _name )
Klondike::Klondike( bool easy, KMainWindow* parent, const char* _name )
: Dealer( parent, _name )
{
// The units of the follwoing constants are pixels
const int margin = 10; // between card piles and board edge
@ -481,14 +481,14 @@ static class LocalDealerInfo0 : public DealerInfo
{
public:
LocalDealerInfo0() : DealerInfo(I18N_NOOP("&Klondike"), 0) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Klondike(true, tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Klondike(true, parent); }
} ldi0;
static class LocalDealerInfo14 : public DealerInfo
{
public:
LocalDealerInfo14() : DealerInfo(I18N_NOOP("Klondike (&draw 3)"), 13) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Klondike(false, tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Klondike(false, parent); }
} ldi14;

@ -36,7 +36,7 @@ class Klondike : public Dealer {
TQ_OBJECT
public:
Klondike( bool easy, KMainWindow* tqparent=0, const char* name=0);
Klondike( bool easy, KMainWindow* parent=0, const char* name=0);
public:
virtual void restart();

@ -26,8 +26,8 @@
//-------------------------------------------------------------------------//
Mod3::Mod3( KMainWindow* tqparent, const char* _name)
: Dealer( tqparent, _name )
Mod3::Mod3( KMainWindow* parent, const char* _name)
: Dealer( parent, _name )
{
const int dist_x = cardMap::CARDX() * 11 / 10 + 1;
const int dist_y = cardMap::CARDY() * 11 / 10 + 1;
@ -301,7 +301,7 @@ static class LocalDealerInfo5 : public DealerInfo
{
public:
LocalDealerInfo5() : DealerInfo(I18N_NOOP("M&od3"), 5) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Mod3(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Mod3(parent); }
} ldi5;
//-------------------------------------------------------------------------//

@ -31,7 +31,7 @@ class Mod3 : public Dealer
TQ_OBJECT
public:
Mod3( KMainWindow* tqparent=0, const char* name=0);
Mod3( KMainWindow* parent=0, const char* name=0);
void deal();

@ -22,8 +22,8 @@
#include "deck.h"
#include "cardmaps.h"
Napoleon::Napoleon( KMainWindow* tqparent, const char* _name )
: Dealer( tqparent, _name )
Napoleon::Napoleon( KMainWindow* parent, const char* _name )
: Dealer( parent, _name )
{
deck = Deck::new_deck( this );
connect(deck, TQT_SIGNAL(clicked(Card *)), TQT_SLOT(deal1(Card*)));
@ -198,7 +198,7 @@ static class LocalDealerInfo4 : public DealerInfo
{
public:
LocalDealerInfo4() : DealerInfo(I18N_NOOP("&Napoleon's Tomb"), 4) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Napoleon(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Napoleon(parent); }
} ldi3;
#include "napoleon.moc"

@ -28,7 +28,7 @@ class Napoleon : public Dealer {
Q_OBJECT
TQ_OBJECT
public:
Napoleon (KMainWindow* tqparent=0, const char* name=0);
Napoleon (KMainWindow* parent=0, const char* name=0);
virtual void restart();
virtual void getHints();

@ -41,7 +41,7 @@ public:
static const int autoTurnTop;
static const int wholeColumn;
Pile( int _index, Dealer* tqparent = 0);
Pile( int _index, Dealer* parent = 0);
virtual ~Pile();
Dealer *dealer() const { return m_dealer; }

@ -5,8 +5,8 @@
#include <assert.h>
#include "cardmaps.h"
Simon::Simon( KMainWindow* tqparent, const char *name )
: Dealer( tqparent, name )
Simon::Simon( KMainWindow* parent, const char *name )
: Dealer( parent, name )
{
deck = Deck::new_deck(this);
deck->move(10, 10);
@ -150,7 +150,7 @@ static class LocalDealerInfo9 : public DealerInfo
{
public:
LocalDealerInfo9() : DealerInfo(I18N_NOOP("&Simple Simon"), 9) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Simon(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Simon(parent); }
} gfi9;
#include "simon.moc"

@ -8,7 +8,7 @@ class Simon : public Dealer {
TQ_OBJECT
public:
Simon( KMainWindow* tqparent=0, const char* name=0);
Simon( KMainWindow* parent=0, const char* name=0);
public slots:
void deal();

@ -48,8 +48,8 @@ void SpiderPile::moveCards(CardList &c, Pile *to)
//-------------------------------------------------------------------------//
Spider::Spider(int suits, KMainWindow* tqparent, const char* _name)
: Dealer(tqparent, _name)
Spider::Spider(int suits, KMainWindow* parent, const char* _name)
: Dealer(parent, _name)
{
const int dist_x = cardMap::CARDX() * 11 / 10 + 1;
const int dist_y = cardMap::CARDY() * 11 / 10 + 1;
@ -459,21 +459,21 @@ static class LocalDealerInfo15 : public DealerInfo
{
public:
LocalDealerInfo15() : DealerInfo(I18N_NOOP("S&pider (Easy)"), 14) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Spider(1, tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Spider(1, parent); }
} ldi15;
static class LocalDealerInfo16 : public DealerInfo
{
public:
LocalDealerInfo16() : DealerInfo(I18N_NOOP("Spider (&Medium)"), 15) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Spider(2, tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Spider(2, parent); }
} ldi16;
static class LocalDealerInfo17 : public DealerInfo
{
public:
LocalDealerInfo17() : DealerInfo(I18N_NOOP("Spider (&Hard)"), 16) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Spider(4, tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Spider(4, parent); }
} ldi17;
//-------------------------------------------------------------------------//

@ -26,7 +26,7 @@
class SpiderPile : public Pile
{
public:
SpiderPile(int _index, Dealer* tqparent = 0) : Pile(_index, tqparent) {}
SpiderPile(int _index, Dealer* parent = 0) : Pile(_index, parent) {}
virtual void moveCards(CardList &c, Pile *to);
CardList getRun();
};
@ -37,7 +37,7 @@ class Spider : public Dealer
TQ_OBJECT
public:
Spider(int suits, KMainWindow *tqparent=0, const char *name=0);
Spider(int suits, KMainWindow *parent=0, const char *name=0);
void deal();
void dealRow();
void checkPileDeck(Pile *to);

@ -5,8 +5,8 @@
#include <assert.h>
#include "cardmaps.h"
Yukon::Yukon( KMainWindow* tqparent, const char *name )
: Dealer( tqparent, name )
Yukon::Yukon( KMainWindow* parent, const char *name )
: Dealer( parent, name )
{
const int dist_x = cardMap::CARDX() * 11 / 10 + 1;
const int dist_y = cardMap::CARDY() * 11 / 10 + 1;
@ -124,7 +124,7 @@ static class LocalDealerInfo10 : public DealerInfo
{
public:
LocalDealerInfo10() : DealerInfo(I18N_NOOP("&Yukon"), 10) {}
virtual Dealer *createGame(KMainWindow *tqparent) { return new Yukon(tqparent); }
virtual Dealer *createGame(KMainWindow *parent) { return new Yukon(parent); }
} gfi10;
#include "yukon.moc"

@ -8,7 +8,7 @@ class Yukon : public Dealer {
TQ_OBJECT
public:
Yukon( KMainWindow* tqparent=0, const char* name=0);
Yukon( KMainWindow* parent=0, const char* name=0);
virtual bool isGameLost() const;
public slots:

@ -24,8 +24,8 @@
#include "betbox.h"
BetBox::BetBox(TQWidget* tqparent, const char* name)
: TQGroupBox(tqparent, name)
BetBox::BetBox(TQWidget* parent, const char* name)
: TQGroupBox(parent, name)
{
TQVBoxLayout* topLayout = new TQVBoxLayout(this, 1, 1);
TQGridLayout* g = new TQGridLayout(topLayout, 2, 2, 1);

@ -36,7 +36,7 @@ class BetBox : public TQGroupBox
TQ_OBJECT
public:
BetBox(TQWidget* tqparent = 0, const char* name = 0);
BetBox(TQWidget* parent = 0, const char* name = 0);
~BetBox();

@ -38,8 +38,8 @@ TQPixmap *CardImages::m_cardPixmaps;
TQPixmap *CardImages::m_deck;
CardImages::CardImages(TQWidget* tqparent, const char* name)
: TQWidget(tqparent, name)
CardImages::CardImages(TQWidget* parent, const char* name)
: TQWidget(parent, name)
{
m_cardPixmaps = new TQPixmap[numCards];
m_deck = new TQPixmap;
@ -109,8 +109,8 @@ CardImages::loadDeck(TQString path)
extern CardImages *cardImages;
CardWidget::CardWidget( TQWidget *tqparent, const char *name )
: TQPushButton( tqparent, name )
CardWidget::CardWidget( TQWidget *parent, const char *name )
: TQPushButton( parent, name )
{
m_held = false;
@ -173,8 +173,8 @@ void CardWidget::repaintDeck()
setPixmap(*m_pm);
setFixedSize(cardImages->getWidth(), cardImages->getHeight());
((TQWidget*) tqparent())->tqlayout()->tqinvalidate();
((TQWidget*) tqparent())->setFixedSize( ((TQWidget*) tqparent())->tqsizeHint());
((TQWidget*) parent())->tqlayout()->tqinvalidate();
((TQWidget*) parent())->setFixedSize( ((TQWidget*) parent())->tqsizeHint());
}

@ -39,7 +39,7 @@ class CardImages : public TQWidget
TQ_OBJECT
public:
CardImages( TQWidget *tqparent = 0, const char *name = 0 );
CardImages( TQWidget *parent = 0, const char *name = 0 );
~CardImages();
// FIXME: Use CardValue instead of int when the cards are in their
@ -70,7 +70,7 @@ class CardWidget : public TQPushButton
TQ_OBJECT
public:
CardWidget( TQWidget *tqparent=0, const char *name=0 );
CardWidget( TQWidget *parent=0, const char *name=0 );
/**
* Paints the deck if cardType = 0 or the card specified in cardType

@ -159,8 +159,8 @@ CardImages *cardImages;
// Class kpok
kpok::kpok(TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name),
kpok::kpok(TQWidget *parent, const char *name)
: TQWidget(parent, name),
m_game(&m_random)
{
TQString version;

@ -173,7 +173,7 @@ class kpok : public TQWidget
TQ_OBJECT
public:
kpok(TQWidget * tqparent = 0, const char *name = 0);
kpok(TQWidget * parent = 0, const char *name = 0);
virtual ~kpok();
TQString getName (int playerNr);

@ -34,9 +34,9 @@
#include "newgamedlg.h"
NewGameDlg::NewGameDlg(TQWidget* tqparent)
NewGameDlg::NewGameDlg(TQWidget* parent)
: KDialogBase(Plain, i18n("New Game"),
Ok|Cancel, Ok, tqparent, 0, true, true)
Ok|Cancel, Ok, parent, 0, true, true)
{
TQVBoxLayout *topLayout = new TQVBoxLayout(plainPage(), spacingHint());
TQHBoxLayout *l = new TQHBoxLayout(topLayout);

@ -42,7 +42,7 @@ class NewGameDlg : public KDialogBase
TQ_OBJECT
public:
NewGameDlg(TQWidget* tqparent = 0);
NewGameDlg(TQWidget* parent = 0);
~NewGameDlg();
/**

@ -28,9 +28,9 @@
#include "defines.h"
OptionsDlg::OptionsDlg(TQWidget* tqparent, const char* name, int _players)
OptionsDlg::OptionsDlg(TQWidget* parent, const char* name, int _players)
: KDialogBase(Plain, i18n("Options")/*?*/, Ok|Cancel, Ok,
tqparent, name, true, true)
parent, name, true, true)
{
TQVBoxLayout* topLayout = new TQVBoxLayout(plainPage(), spacingHint());
maxBet = 0;

@ -42,7 +42,7 @@ class OptionsDlg : public KDialogBase
TQ_OBJECT
public:
OptionsDlg(TQWidget* tqparent = 0, const char* name = 0, int _players = 1);
OptionsDlg(TQWidget* parent = 0, const char* name = 0, int _players = 1);
~OptionsDlg();
void init(int _drawDelay, int _maxBetOrCashPerRound, int minBet = -1);

@ -30,8 +30,8 @@
#include "kpaint.h"
PlayerBox::PlayerBox(bool playerOne, TQWidget* tqparent, const char* name)
: TQGroupBox(tqparent, name)
PlayerBox::PlayerBox(bool playerOne, TQWidget* parent, const char* name)
: TQGroupBox(parent, name)
{
TQHBoxLayout* l = new TQHBoxLayout(this, PLAYERBOX_BORDERS,
PLAYERBOX_HDISTANCEOFWIDGETS);

@ -35,7 +35,7 @@ class PlayerBox : public TQGroupBox
TQ_OBJECT
public:
PlayerBox(bool playerOne, TQWidget* tqparent = 0, const char* name = 0);
PlayerBox(bool playerOne, TQWidget* parent = 0, const char* name = 0);
~PlayerBox();
void cardClicked(int no);

@ -71,8 +71,8 @@ const uint CHIP_SIZE = 36;
// class KReversiBoardView
QReversiBoardView::QReversiBoardView(TQWidget *tqparent, QReversiGame *krgame)
: TQWidget(tqparent, "board"),
QReversiBoardView::QReversiBoardView(TQWidget *parent, QReversiGame *krgame)
: TQWidget(parent, "board"),
chiptype(Unloaded)
{
m_krgame = krgame;

@ -60,7 +60,7 @@ class QReversiBoardView : public TQWidget {
public:
QReversiBoardView(TQWidget *tqparent, QReversiGame *game);
QReversiBoardView(TQWidget *parent, QReversiGame *game);
~QReversiBoardView();
// starts all: emits some signal, so it can't be called from

@ -44,8 +44,8 @@
// class QReversiGame
QReversiGame::QReversiGame(TQObject *tqparent)
: TQObject(tqparent), Game()
QReversiGame::QReversiGame(TQObject *parent)
: TQObject(parent), Game()
{
}

@ -67,7 +67,7 @@ class QReversiGame : public TQObject, public Game {
TQ_OBJECT
public:
QReversiGame(TQObject *tqparent = 0);
QReversiGame(TQObject *parent = 0);
~QReversiGame();
// Methods dealing with the game

@ -71,8 +71,8 @@
// class StatusWidget
StatusWidget::StatusWidget(const TQString &text, TQWidget *tqparent)
: TQWidget(tqparent, "status_widget")
StatusWidget::StatusWidget(const TQString &text, TQWidget *parent)
: TQWidget(parent, "status_widget")
{
TQHBoxLayout *hbox = new TQHBoxLayout(this, 0, KDialog::spacingHint());
TQLabel *label;
@ -122,8 +122,8 @@ void StatusWidget::setScore(uint s)
// class QReversiGameView
QReversiGameView::QReversiGameView(TQWidget *tqparent, QReversiGame *game)
: TQWidget(tqparent, "gameview")
QReversiGameView::QReversiGameView(TQWidget *parent, QReversiGame *game)
: TQWidget(parent, "gameview")
{
// Store a pointer to the game.
m_game = game;

@ -61,7 +61,7 @@ class StatusWidget : public TQWidget
TQ_OBJECT
public:
StatusWidget(const TQString &text, TQWidget *tqparent);
StatusWidget(const TQString &text, TQWidget *parent);
void setText(const TQString &string);
void setPixmap(const TQPixmap &pixmap);
@ -82,7 +82,7 @@ class QReversiGameView : public TQWidget {
public:
QReversiGameView(TQWidget *tqparent, QReversiGame *game);
QReversiGameView(TQWidget *parent, QReversiGame *game);
~QReversiGameView();
// Proxy methods for the board view

@ -46,8 +46,8 @@ static int default_colors=3;
#define Board KScoreDialog::Custom1
KSameWidget::KSameWidget(TQWidget *tqparent, const char* name, WFlags fl) :
KMainWindow(tqparent,name,fl)
KSameWidget::KSameWidget(TQWidget *parent, const char* name, WFlags fl) :
KMainWindow(parent,name,fl)
{
KStdGameAction::gameNew(TQT_TQOBJECT(this), TQT_SLOT(m_new()), actionCollection(), "game_new");
restart = new KAction(i18n("&Restart This Board"), CTRL+Key_R, TQT_TQOBJECT(this),

@ -32,7 +32,7 @@ class KSameWidget: public KMainWindow {
TQ_OBJECT
public:
KSameWidget(TQWidget *tqparent=0, const char* name=0, WFlags fl=0);
KSameWidget(TQWidget *parent=0, const char* name=0, WFlags fl=0);
private slots:
/* File Menu */

@ -46,8 +46,8 @@ struct StoneSlice {
};
StoneWidget::StoneWidget( TQWidget *tqparent, int x, int y )
: TQWidget(tqparent,"StoneWidget"), stonefield(x,y)
StoneWidget::StoneWidget( TQWidget *parent, int x, int y )
: TQWidget(parent,"StoneWidget"), stonefield(x,y)
{
setBackgroundPixmap(TQPixmap(locate("wallpaper", "Time-For-Lunch-2.jpg")));
TQPixmap stonemap(locate("appdata", "stones.png"));
@ -65,7 +65,7 @@ StoneWidget::StoneWidget( TQWidget *tqparent, int x, int y )
stone_height=stonemap.height()/maxcolors;
map = new StoneSlice*[maxcolors];
TQBitmap tqmask;
TQBitmap mask;
for (int c = 0; c < maxcolors; c++) {
map[c] = new StoneSlice[maxslices];
@ -77,8 +77,8 @@ StoneWidget::StoneWidget( TQWidget *tqparent, int x, int y )
c*stone_height,
stone_width,stone_height,CopyROP,false);
TQImage im = map[c][s].stone.convertToImage();
tqmask.convertFromImage(im.createHeuristicMask());
map[c][s].stone.setMask(tqmask);
mask.convertFromImage(im.createHeuristicMask());
map[c][s].stone.setMask(mask);
}
}

@ -47,7 +47,7 @@ class StoneWidget : public TQWidget {
StoneSlice **map;
public:
StoneWidget( TQWidget *tqparent=0, int x=10,int y=10);
StoneWidget( TQWidget *parent=0, int x=10,int y=10);
~StoneWidget();
unsigned int board();

@ -62,7 +62,7 @@
#include "prefs.h"
#include "settings.h"
App::App(TQWidget *tqparent, const char *name) : KMainWindow(tqparent, name),
App::App(TQWidget *parent, const char *name) : KMainWindow(parent, name),
cheat(false)
{
highscoreTable = new KHighscore(TQT_TQOBJECT(this));

@ -65,7 +65,7 @@ class App : public KMainWindow
TQ_OBJECT
public:
App(TQWidget *tqparent = 0, const char *name=0);
App(TQWidget *parent = 0, const char *name=0);
private slots:
void loadSettings();

@ -57,8 +57,8 @@ static int size_x[5] = {14, 18, 24, 26, 30};
static int size_y[5] = { 6, 8, 12, 14, 16};
static int DELAY[5] = {1000, 750, 500, 250, 125};
Board::Board(TQWidget *tqparent, const char *name) :
TQWidget(tqparent, name, WResizeNoErase), field(0),
Board::Board(TQWidget *parent, const char *name) :
TQWidget(parent, name, WResizeNoErase), field(0),
_x_tiles(0), _y_tiles(0),
_delay(125), paused(false),
gravity_flag(true), _solvable_flag(true),

@ -73,7 +73,7 @@ class Board : public TQWidget
TQ_OBJECT
public:
Board(TQWidget *tqparent = 0, const char *name=0);
Board(TQWidget *parent = 0, const char *name=0);
~Board();
virtual void paintEvent(TQPaintEvent *);

@ -8,8 +8,8 @@
using namespace KGrid2D;
KSBoard::KSBoard(bool graphic, TQWidget *tqparent)
: Board(graphic, new GiftPool(tqparent), tqparent),
KSBoard::KSBoard(bool graphic, TQWidget *parent)
: Board(graphic, new GiftPool(parent), parent),
filled(matrix().height()), linesRemoved(4)
{
init();

@ -9,7 +9,7 @@ class KSBoard : public Board
Q_OBJECT
TQ_OBJECT
public:
KSBoard(bool graphic, TQWidget *tqparent);
KSBoard(bool graphic, TQWidget *parent);
void copy(const GenericTetris &);
void start(const GTInitData &);

@ -11,8 +11,8 @@
#include "piece.h"
//-----------------------------------------------------------------------------
KSField::KSField(TQWidget *tqparent)
: Field(tqparent)
KSField::KSField(TQWidget *parent)
: Field(parent)
{
const Board *b = static_cast<Board *>(board);
TQWhatsThis::add(b->giftPool(), i18n("Indicate the number of garbage lines you received from your opponent."));

@ -10,7 +10,7 @@ class KSField : public Field
Q_OBJECT
TQ_OBJECT
public:
KSField(TQWidget *tqparent);
KSField(TQWidget *parent);
private slots:
virtual void removedUpdated();

@ -64,9 +64,9 @@ KSFactory::KSFactory()
: CommonFactory(MAIN_DATA, BASE_BOARD_INFO, COMMON_BOARD_INFO)
{}
BaseInterface *KSFactory::createInterface(TQWidget *tqparent)
BaseInterface *KSFactory::createInterface(TQWidget *parent)
{
return new Interface(MP_GAME_INFO, tqparent);
return new Interface(MP_GAME_INFO, parent);
}
//-----------------------------------------------------------------------------

@ -16,11 +16,11 @@ class KSFactory : public CommonFactory
KSFactory();
protected:
virtual BaseBoard *createBoard(bool graphic, TQWidget *tqparent)
{ return new KSBoard(graphic, tqparent); }
virtual BaseField *createField(TQWidget *tqparent)
{ return new KSField(tqparent); }
virtual BaseInterface *createInterface(TQWidget *tqparent);
virtual BaseBoard *createBoard(bool graphic, TQWidget *parent)
{ return new KSBoard(graphic, parent); }
virtual BaseField *createField(TQWidget *parent)
{ return new KSField(parent); }
virtual BaseInterface *createInterface(TQWidget *parent);
virtual AI *createAI() { return new KSAI; }
virtual TQWidget *createGameConfig() { return new KSGameConfig; }
};

@ -43,8 +43,8 @@ this software.
#include <kmessagebox.h>
#include <klocale.h>
GameWidget::GameWidget(TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name)
GameWidget::GameWidget(TQWidget *parent, const char *name)
: TQWidget(parent, name)
{
in_game = false;
in_pause = false;
@ -153,7 +153,7 @@ void GameWidget::loadSprites()
loadSprite(Sprite_Bg14, "bg14.bmp");
loadSprite(Sprite_Bg15, "bg15.bmp");
loadSprite(Sprite_Bg16, "bg16.bmp");
loadMaskedSprite(Sprite_Broken, "broken.bmp", "broken-tqmask.bmp");
loadMaskedSprite(Sprite_Broken, "broken.bmp", "broken-mask.bmp");
}
void GameWidget::loadSprite(Sprite spr, const TQString & path)

@ -48,7 +48,7 @@ public:
int num_level;
int num_points;
GameWidget(TQWidget *tqparent=0, const char *name=0);
GameWidget(TQWidget *parent=0, const char *name=0);
~GameWidget();
void setPieces(PiecesType type);

@ -38,7 +38,7 @@ class GameWindow : public KMainWindow {
TQ_OBJECT
public:
GameWindow(TQWidget *tqparent=0, const char *name=0);
GameWindow(TQWidget *parent=0, const char *name=0);
public slots:
void menu_newGame();

@ -31,8 +31,8 @@ this software.
#include "mirrorwidget.h"
MirrorWidget::MirrorWidget(TQPixmap *s, bool *game, bool *pause,
TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name)
TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
in_game = game;
in_pause = pause;

@ -31,7 +31,7 @@ this software.
class MirrorWidget : public TQFrame {
public:
MirrorWidget(TQPixmap *s, bool *game, bool *pause,
TQWidget *tqparent=0, const char *name=0);
TQWidget *parent=0, const char *name=0);
void setBackgroundSprite(Sprite s) { bg_sprite = s; }
void setMirrorSprites(Sprite *s) { mirror_sprites = s; }

@ -31,8 +31,8 @@ this software.
#include "npiecewidget.h"
NextPieceWidget::NextPieceWidget(TQPixmap *s, bool *game, bool *pause,
TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name)
TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
in_game = game;
in_pause = pause;

@ -31,7 +31,7 @@ this software.
class NextPieceWidget : public TQFrame {
public:
NextPieceWidget(TQPixmap *s, bool *game, bool *pause,
TQWidget *tqparent=0, const char *name=0);
TQWidget *parent=0, const char *name=0);
void setBackgroundSprite(Sprite s) { bg_sprite = s; }
void setNextPieceSprites(Sprite *s) { next_piece_sprites = s; }

@ -33,8 +33,8 @@ this software.
#include "screenwidget.h"
ScreenWidget::ScreenWidget(TQPixmap *s, bool *game, bool *pause,
TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name)
TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
in_game = game;
in_pause = pause;

@ -31,7 +31,7 @@ this software.
class ScreenWidget : public TQFrame {
public:
ScreenWidget(TQPixmap *s, bool *game, bool *pause,
TQWidget *tqparent=0, const char *name=0);
TQWidget *parent=0, const char *name=0);
void setBackgroundSprite(Sprite s) { bg_sprite = s; }
void setScreenSprites(Sprite *s) { screen_sprites = s; }

@ -48,7 +48,7 @@ int Pos::price() const {
void Pos::setParent(Pos *p) {
_parent = p;
}
Pos *Pos::tqparent() const {
Pos *Pos::parent() const {
return(_parent);
}
Pos *Pos::listNext() {
@ -241,7 +241,7 @@ int Board::getNextCloseTo(int s, int d, bool diag, int lastIndex)
if(list->index() == d) {
// Find first movement after root.
for(; ; list = p) {
p = list->tqparent();
p = list->parent();
if(p == root) {
// This is our move.
int nextSq = list->index();
@ -265,7 +265,7 @@ int Board::getNextCloseTo(int s, int d, bool diag, int lastIndex)
continue;
}
int pi = list->tqparent() ? list->tqparent()->index() : lastIndex;
int pi = list->parent() ? list->parent()->index() : lastIndex;
if(pi != -1 && direction(pi, list->index()) !=
direction(list->index(), i)) {
pri += 10;
@ -277,7 +277,7 @@ int Board::getNextCloseTo(int s, int d, bool diag, int lastIndex)
// Check price of found position with current one.
if(p->price() > pri) {
// We found a cheapear way to reach the same
// place, so let's change the tqparent and price of p.
// place, so let's change the parent and price of p.
p->setPrice(list->price() + 1);
p->setParent(list);
list->addList(p);

@ -47,7 +47,7 @@ public:
void setPrice(int p);
int price() const;
void setParent(Pos *p);
Pos *tqparent() const;
Pos *parent() const;
Pos *listNext();
void addBTree(Pos *np);
Pos *searchBTree(int i);

@ -54,7 +54,7 @@
#define SCORE 1
#define LIVES 2
Game::Game(TQWidget *tqparent, const char *name) : KMainWindow(tqparent,name)
Game::Game(TQWidget *parent, const char *name) : KMainWindow(parent,name)
{
// create statusbar
statusBar()->insertItem(i18n("Score: 0"), SCORE);

@ -39,7 +39,7 @@ Q_OBJECT
TQ_OBJECT
public:
Game(TQWidget *tqparent=0, const char *name=0);
Game(TQWidget *parent=0, const char *name=0);
~Game();
private slots:

@ -25,8 +25,8 @@
#include "progress.h"
Progress::Progress(TQWidget *tqparent, const char *name)
: KGameProgress(0, 300, 300, Qt::Horizontal, tqparent, name)
Progress::Progress(TQWidget *parent, const char *name)
: KGameProgress(0, 300, 300, Qt::Horizontal, parent, name)
{
setBarColor("green1");
setTextEnabled(false);

@ -33,7 +33,7 @@ class Progress : public KGameProgress
Q_OBJECT
TQ_OBJECT
public:
Progress( TQWidget *tqparent=0, const char *name=0 );
Progress( TQWidget *parent=0, const char *name=0 );
public slots:
void advance();

@ -43,8 +43,8 @@ TQBitArray gameState(5);
TQLabel *label = 0;
int speed[4] = { 130, 95, 55, 40 };
Rattler::Rattler( TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
Rattler::Rattler( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
setFocusPolicy(TQ_StrongFocus);

@ -46,7 +46,7 @@ class Rattler : public TQWidget
TQ_OBJECT
public:
Rattler ( TQWidget *tqparent=0, const char *name=0 );
Rattler ( TQWidget *parent=0, const char *name=0 );
~Rattler();
void setActionCollection(KActionCollection *a){ actionCollection = a;}

@ -33,8 +33,8 @@
#include "levels.h"
StartRoom::StartRoom( TQWidget *tqparent, const char *name)
: TQWidget( tqparent, name )
StartRoom::StartRoom( TQWidget *parent, const char *name)
: TQWidget( parent, name )
{
TQGridLayout *Form1Layout = new TQGridLayout( this, 1, 1, 11, 6, "Form1Layout");
TQSpacerItem* spacer = new TQSpacerItem( 20, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding );

@ -36,7 +36,7 @@ class StartRoom : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
StartRoom( TQWidget *tqparent=0, const char *name=0 );
StartRoom( TQWidget *parent=0, const char *name=0 );
private slots:
void loadLevel(int level);

@ -32,8 +32,8 @@ int MAPWIDTH = BRICKSIZE * 35;
int MAPHEIGHT = MAPWIDTH;
#define BAR_HEIGHT 12
View::View( TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
View::View( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
progress = new Progress(this);
rattler = new Rattler( this);

@ -35,7 +35,7 @@ class View : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
View ( TQWidget *tqparent=0, const char *name=0 );
View ( TQWidget *parent=0, const char *name=0 );
Progress *progress;
Rattler *rattler;

@ -28,9 +28,9 @@
#include "ModalLabel.moc"
ModalLabel::ModalLabel(const TQString &text, TQWidget *tqparent,
ModalLabel::ModalLabel(const TQString &text, TQWidget *parent,
const char *name, WFlags f)
: TQLabel(text, tqparent, name, f) {
: TQLabel(text, parent, name, f) {
TQFont font(KGlobalSettings::generalFont().family(), 24, TQFont::Bold);
TQFontMetrics fontMet(font);
@ -61,7 +61,7 @@ ModalLabel::ModalLabel(const TQString &text, TQWidget *tqparent,
setFrameStyle (TQFrame::Panel | TQFrame::Raised);
setLineWidth (4);
setFont (font);
move (tqparent->width ()/2 - width/2, tqparent->height ()/2 - height/2);
move (parent->width ()/2 - width/2, parent->height ()/2 - height/2);
resize (width, height);
show ();
@ -107,9 +107,9 @@ ModalLabel::eventFilter (TQObject *, TQEvent *e) {
}
void
ModalLabel::message (const TQString &text, TQWidget *tqparent) {
ModalLabel::message (const TQString &text, TQWidget *parent) {
KApplication *app = KApplication::kApplication ();
ModalLabel cl (text, tqparent);
ModalLabel cl (text, parent);
while (!cl.completed_) app->processOneEvent ();
}

@ -26,14 +26,14 @@ class ModalLabel : public TQLabel {
Q_OBJECT
TQ_OBJECT
public:
static void message (const TQString &text, TQWidget *tqparent);
static void message (const TQString &text, TQWidget *parent);
void timerEvent (TQTimerEvent *);
bool eventFilter (TQObject *, TQEvent *);
bool completed_;
protected:
ModalLabel (const TQString &text, TQWidget *tqparent, const char *name=0, WFlags f=0);
ModalLabel (const TQString &text, TQWidget *parent, const char *name=0, WFlags f=0);
};

@ -45,8 +45,8 @@
#include "PlayField.moc"
PlayField::PlayField(TQWidget *tqparent, const char *name, WFlags f)
: TQWidget(tqparent, name, f|WResizeNoErase), imageData_(0), lastLevel_(-1),
PlayField::PlayField(TQWidget *parent, const char *name, WFlags f)
: TQWidget(parent, name, f|WResizeNoErase), imageData_(0), lastLevel_(-1),
moveSequence_(0), moveInProgress_(false), dragInProgress_(false),
xOffs_(0), yOffs_(0),
wheelDelta_(0),

@ -45,7 +45,7 @@ class PlayField : public TQWidget {
Q_OBJECT
TQ_OBJECT
public:
PlayField(TQWidget *tqparent, const char *name=0, WFlags f=0);
PlayField(TQWidget *parent, const char *name=0, WFlags f=0);
~PlayField ();
bool canMoveNow();

@ -113,8 +113,8 @@ int ConfigSetup::Position[EditNum]=
const int LCDLen=6;
ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *tqparent,const char *name)
:TQWidget( tqparent, name )
ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
:TQWidget( parent, name )
{
TQLabel *label[EditNum];
TQGridLayout *stacklayout[TabNum];
@ -388,8 +388,8 @@ void ConfigSetup::sliderChanged(int val)
}
SettingsDialog::SettingsDialog(SConfig *customConfig, TQWidget *tqparent, const char *name)
: KConfigDialog( tqparent, name, Options::self())
SettingsDialog::SettingsDialog(SConfig *customConfig, TQWidget *parent, const char *name)
: KConfigDialog( parent, name, Options::self())
{
General *general = new General();
addPage(general, i18n("General"), "package_settings", i18n("General Settings"));

@ -20,7 +20,7 @@ class ConfigSetup:public TQWidget
Q_OBJECT
TQ_OBJECT
public:
ConfigSetup(SConfig *custom,TQWidget *tqparent=0,const char* name=0);
ConfigSetup(SConfig *custom,TQWidget *parent=0,const char* name=0);
bool hasChanged();
bool isDefault();
@ -82,7 +82,7 @@ class SettingsDialog : public KConfigDialog
Q_OBJECT
TQ_OBJECT
public:
SettingsDialog(SConfig *customConfig, TQWidget *tqparent=0, const char *name=0);
SettingsDialog(SConfig *customConfig, TQWidget *parent=0, const char *name=0);
~SettingsDialog();
signals:

@ -18,8 +18,8 @@
KToggleAction *MyMainView::pauseAction = 0;
MyMainView::MyMainView(TQWidget *tqparent)
:TQWidget(tqparent),
MyMainView::MyMainView(TQWidget *parent)
:TQWidget(parent),
field(DEF_WIDTH,DEF_HEIGHT),
view(&field,this)
{

@ -21,7 +21,7 @@ class MyMainView:public TQWidget
Q_OBJECT
TQ_OBJECT
public:
MyMainView(TQWidget *tqparent=0);
MyMainView(TQWidget *parent=0);
~MyMainView();
static KToggleAction *pauseAction;

@ -5,8 +5,8 @@
#include <kstandarddirs.h>
PlayerInfo::PlayerInfo(int pnr,TQWidget *tqparent,const char *name)
:TQFrame(tqparent,name),
PlayerInfo::PlayerInfo(int pnr,TQWidget *parent,const char *name)
:TQFrame(parent,name),
lplayer(this),lenergy(this),lwins(this),
hitpoints(2,this),energy(2,this),wins(2,this)
{

@ -12,7 +12,7 @@ class PlayerInfo:public TQFrame
Q_OBJECT
TQ_OBJECT
public:
PlayerInfo(int pnr,TQWidget *tqparent=0,const char *name=0);
PlayerInfo(int pnr,TQWidget *parent=0,const char *name=0);
public slots:
void setHitpoints(int h);
void setEnergy(int e);

@ -42,7 +42,7 @@
/**
* Constuctor
*/
KTron::KTron(TQWidget *tqparent, const char *name) : KMainWindow(tqparent, name) {
KTron::KTron(TQWidget *parent, const char *name) : KMainWindow(parent, name) {
playerPoints[0]=playerPoints[1]=0;
tron=new Tron(this, "Tron");

@ -42,7 +42,7 @@ Q_OBJECT
TQ_OBJECT
public:
KTron(TQWidget *tqparent=0, const char *name=0);
KTron(TQWidget *parent=0, const char *name=0);
private:
KAccel *accel;

@ -41,8 +41,8 @@
* init-functions
**/
Tron::Tron(TQWidget *tqparent,const char *name)
: TQWidget(tqparent,name)
Tron::Tron(TQWidget *parent,const char *name)
: TQWidget(parent,name)
{
pixmap=0;
playfield=0;

@ -49,7 +49,7 @@ class Tron : public TQWidget
TQ_OBJECT
public:
Tron(TQWidget *tqparent=0, const char *name=0);
Tron(TQWidget *parent=0, const char *name=0);
~Tron();
void setActionCollection(KActionCollection*);
void updatePixmap();

@ -11,7 +11,7 @@
<ktuberling>
<playground gameboard="potato-game.png" masks="potato-tqmask.png">
<playground gameboard="potato-game.png" masks="potato-mask.png">
<menuitem action="playground_potato_guy">
<label>Potato &amp;Guy</label>
@ -269,7 +269,7 @@
</playground>
<playground gameboard="penguin-game.png" masks="penguin-tqmask.png">
<playground gameboard="penguin-game.png" masks="penguin-mask.png">
<menuitem action="playground_penguin">
<label>&amp;Penguin</label>
@ -422,7 +422,7 @@
</playground>
<playground gameboard="aquarium-game.png" masks="aquarium-tqmask.png">
<playground gameboard="aquarium-game.png" masks="aquarium-mask.png">
<menuitem action="playground_aquarium">
<label>&amp;Aquarium</label>

@ -24,10 +24,10 @@
#define YMARGIN 5
// Constructor
PlayGround::PlayGround(TopLevel *tqparent, const char *name, uint selectedGameboard)
: TQWidget(tqparent, name)
PlayGround::PlayGround(TopLevel *parent, const char *name, uint selectedGameboard)
: TQWidget(parent, name)
{
topLevel = tqparent;
topLevel = parent;
textsLayout = objectsLayout = 0;
textsList = soundsList = 0;

@ -27,7 +27,7 @@ class PlayGround : public TQWidget
public:
PlayGround(TopLevel *tqparent, const char *name, uint selectedGameboard);
PlayGround(TopLevel *parent, const char *name, uint selectedGameboard);
~PlayGround();
void reset();

@ -18,10 +18,10 @@
#include "toplevel.h"
// Constructor
SoundFactory::SoundFactory(TopLevel *tqparent, const char *name, uint selectedLanguage)
: TQObject(tqparent, name)
SoundFactory::SoundFactory(TopLevel *parent, const char *name, uint selectedLanguage)
: TQObject(parent, name)
{
topLevel = tqparent;
topLevel = parent;
namesList = filesList = 0;

@ -20,7 +20,7 @@ class SoundFactory : public TQObject
public:
SoundFactory(TopLevel *tqparent, const char *name, uint selectedLanguage);
SoundFactory(TopLevel *parent, const char *name, uint selectedLanguage);
~SoundFactory();
void change(uint selectedLanguage);

@ -27,8 +27,8 @@
// KSprite
#include <math.h>
KSpriteCache::KSpriteCache(TQString grafixdir, TQObject* tqparent,const char * name)
: TQObject(tqparent,name)
KSpriteCache::KSpriteCache(TQString grafixdir, TQObject* parent,const char * name)
: TQObject(parent,name)
{
kdDebug(11002) << "KSpriteCache:: grafixdir=" << grafixdir << endl;
mConfig=0;
@ -155,7 +155,7 @@ TQCanvasItem *KSpriteCache::getItem(TQString name,int no)
return item;
}
TQPixmap * KSpriteCache::loadPixmap(TQString file,TQString tqmask,TQString dir)
TQPixmap * KSpriteCache::loadPixmap(TQString file,TQString mask,TQString dir)
{
TQPixmap *newP=new TQPixmap;
bool result1=false;
@ -165,21 +165,21 @@ TQPixmap * KSpriteCache::loadPixmap(TQString file,TQString tqmask,TQString dir)
{
result1=newP->load(dir+file);
}
if (result1 && !tqmask.isNull())
if (result1 && !mask.isNull())
{
TQBitmap bittqmask;
if (tqmask==TQString("auto")) // self tqmask..slow but quick to create
TQBitmap bitmask;
if (mask==TQString("auto")) // self mask..slow but quick to create
{
newP->setMask( newP->createHeuristicMask() );
result2=true;
}
else
{
result2=bittqmask.load(dir+tqmask);
if (result2) newP->setMask(bittqmask);
result2=bitmask.load(dir+mask);
if (result2) newP->setMask(bitmask);
}
}
//kdDebug(11002) << "KSpriteCache::loadPixmap: file="<<file<<" tqmask="<<tqmask<<" result1="<<result1<<" result2="<<result2<<endl;
//kdDebug(11002) << "KSpriteCache::loadPixmap: file="<<file<<" mask="<<mask<<" result1="<<result1<<" result2="<<result2<<endl;
return newP;
}
@ -221,7 +221,7 @@ TQCanvasPixmapArray *KSpriteCache::createPixmapArray(KConfig *config,TQString na
//kdDebug(11002) << " Reading " << number << " frames " << endl;
TQString pixfile=config->readPathEntry(name+"file");
TQString maskfile=config->readPathEntry(name+"tqmask");
TQString maskfile=config->readPathEntry(name+"mask");
// Load a given set of images or replace a %d by a sequence if there are
// less image names than number given
@ -230,12 +230,12 @@ TQCanvasPixmapArray *KSpriteCache::createPixmapArray(KConfig *config,TQString na
// Read images
for (unsigned int i=0;i<number;i++)
{
TQString tmpfile,tmptqmask;
TQString tmpfile,tmpmask;
tmpfile.sprintf(pixfile.latin1(),i);
tmptqmask.sprintf(maskfile.latin1(),i);
tmpmask.sprintf(maskfile.latin1(),i);
pixmap=loadPixmap(tmpfile,tmptqmask);
if (!pixmap) kdError() << "Could not create pixmap="<<tmpfile << " with tqmask " << tmptqmask << endl;
pixmap=loadPixmap(tmpfile,tmpmask);
if (!pixmap) kdError() << "Could not create pixmap="<<tmpfile << " with mask " << tmpmask << endl;
else
{
applyFilter(pixmap,config,name);
@ -255,7 +255,7 @@ TQCanvasPixmapArray *KSpriteCache::createPixmapArray(KConfig *config,TQString na
double step;
if (number>1) step=(100.0-finalscale)/100.0/(double)(number-1);
else step=1.0;
//kdDebug(11002) << " Scaling " << number << " pics axis="<<axis<<" final="<<finalscale<<" file="<<pixfile<< " tqmask="<<maskfile<<endl;
//kdDebug(11002) << " Scaling " << number << " pics axis="<<axis<<" final="<<finalscale<<" file="<<pixfile<< " mask="<<maskfile<<endl;
pixmap=loadPixmap(pixfile,maskfile);
for (unsigned int j=0;j<(unsigned int)number;j++)

@ -37,7 +37,7 @@ class KSprite;
public:
KSpriteNotify() :TQObject(0,0) {mRefCnt=0;}
void emitSignal(TQCanvasItem *tqparent,int mode) {emit signalNotify(tqparent,mode);}
void emitSignal(TQCanvasItem *parent,int mode) {emit signalNotify(parent,mode);}
void incRefCnt() {mRefCnt++;}
void decRefCnt() {mRefCnt--;}
int refCnt() {return mRefCnt;}
@ -147,7 +147,7 @@ class KSprite : public TQCanvasSprite
/**
* Creates a notification object. You can connect to it and it will emit
* the signal signalNotify(TQCanvasItem *tqparent, intmode) when a move or
* the signal signalNotify(TQCanvasItem *parent, intmode) when a move or
* animation is finished.
* Example:
* <pre>
@ -244,17 +244,17 @@ class KSprite : public TQCanvasSprite
*
* Example:
* <pre>
* # Sprite with three frames and a common tqmask for them
* # Sprite with three frames and a common mask for them
* # z position given but x,y set manually in the program
* [arrow]
* file=arrow%d.png
* tqmask=arrow_tqmask.png
* mask=arrow_mask.png
* number=3
* offset=19,5
* rtti=32
* z=9.0
*
* # Simple sprite which is already positioned correcly. No tqmask just one file
* # Simple sprite which is already positioned correcly. No mask just one file
* [board]
* file=board.png
* rtti=32
@ -267,7 +267,7 @@ class KSprite : public TQCanvasSprite
* [star]
* anim0=0,4,2,8
* file=star%d.png
* tqmask=star%d_tqmask.png
* mask=star%d_mask.png
* number=5
* offset=19,20
* rtti=32
@ -293,7 +293,7 @@ class KSpriteCache : public TQObject
*
* @param grafixdir - the directory where the configuration file and the graphics reside
**/
KSpriteCache(TQString grafixdir, TQObject* tqparent=0,const char * name=0);
KSpriteCache(TQString grafixdir, TQObject* parent=0,const char * name=0);
/**
* Delete the sprite cache
@ -369,10 +369,10 @@ class KSpriteCache : public TQObject
/**
* This function loads a pixmap from the given file. Optional you can also
* provide a tqmask file. Also optinal you can provide the directory. Default
* provide a mask file. Also optinal you can provide the directory. Default
* is the directory which is set with this @ref KSpriteCache
**/
TQPixmap * loadPixmap(TQString file,TQString tqmask=TQString(),TQString dir=TQString());
TQPixmap * loadPixmap(TQString file,TQString mask=TQString(),TQString dir=TQString());
/**
* Deletes a item form the sprite cache given as a pointer to it
@ -438,7 +438,7 @@ class KSpriteCache : public TQObject
* number=(int) : how many frames to generate
* file=(Qstring) : the filename to load (can contain printf format args
* as %d which are replaced, e.g. file=hello_%d.png
* tqmask=(TQString) : Same for the tqmask of the pixmaps
* mask=(TQString) : Same for the mask of the pixmaps
* axis=(int) : (scale only): scale axis (1=x,2=y,3=x+y)
* final=(double) : final scale in percent (default 0.0, i.e. complete scaling)
* colorfilter=1,h,s,v: make a HSV transform of all sprite images

@ -63,8 +63,8 @@
* Constructor for the chat widget. This widget
* is derived from the libkdegames chat widget
*/
ChatDlg::ChatDlg(KGame *game,TQWidget *tqparent)
: KDialogBase(Plain,i18n("Chat Dlg"),Ok,Ok,tqparent,0,false,true),mChat(0), mChatDlg(0)
ChatDlg::ChatDlg(KGame *game,TQWidget *parent)
: KDialogBase(Plain,i18n("Chat Dlg"),Ok,Ok,parent,0,false,true),mChat(0), mChatDlg(0)
{
setMinimumSize(TQSize(200,200));
@ -107,7 +107,7 @@ void ChatDlg::setPlayer(Kwin4Player *p)
/**
* Construct the main application window
*/
Kwin4App::Kwin4App(TQWidget *tqparent, const char *name) : KMainWindow(tqparent,name), view(0), doc(0), mChat(0), mMyChatDlg(0)
Kwin4App::Kwin4App(TQWidget *parent, const char *name) : KMainWindow(parent,name), view(0), doc(0), mChat(0), mMyChatDlg(0)
{
initGUI();
initStatusBar();

@ -40,7 +40,7 @@ class KDE_EXPORT ChatDlg : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
ChatDlg(KGame *game,TQWidget* tqparent=0);
ChatDlg(KGame *game,TQWidget* parent=0);
public slots:
void setPlayer(Kwin4Player *p);
@ -60,7 +60,7 @@ Q_OBJECT
TQ_OBJECT
public:
Kwin4App(TQWidget *tqparent=0, const char *name=0);
Kwin4App(TQWidget *parent=0, const char *name=0);
protected:
void EndGame(TABLE mode);

@ -36,7 +36,7 @@
#include "prefs.h"
#include "statuswidget.h"
Kwin4Doc::Kwin4Doc(TQWidget *tqparent, const char *) : KGame(1234,TQT_TQOBJECT(tqparent)), pView(0), mHintProcess(0)
Kwin4Doc::Kwin4Doc(TQWidget *parent, const char *) : KGame(1234,TQT_TQOBJECT(parent)), pView(0), mHintProcess(0)
{
connect(this,TQT_SIGNAL(signalPropertyChanged(KGamePropertyBase *,KGame *)),
this,TQT_SLOT(slotPropertyChanged(KGamePropertyBase *,KGame *)));

@ -51,7 +51,7 @@ Q_OBJECT
TQ_OBJECT
public:
Kwin4Doc(TQWidget *tqparent, const char *name=0);
Kwin4Doc(TQWidget *parent, const char *name=0);
~Kwin4Doc();
/** adds a view to the document which represents the document contents. Usually this is your main view. */

@ -101,8 +101,8 @@ private:
};
Kwin4View::Kwin4View(Kwin4Doc *theDoc, TQWidget *tqparent, const char *name)
: TQCanvasView(0,tqparent, name), doc(theDoc)
Kwin4View::Kwin4View(Kwin4Doc *theDoc, TQWidget *parent, const char *name)
: TQCanvasView(0,parent, name), doc(theDoc)
{
mLastArrow=-1;
@ -129,8 +129,8 @@ Kwin4View::Kwin4View(Kwin4Doc *theDoc, TQWidget *tqparent, const char *name)
//setBackgroundMode(PaletteBase);
setBackgroundColor(TQColor(0,0,128));
mCanvas=new TQCanvas(TQT_TQOBJECT(tqparent));
mCanvas->resize(tqparent->width(),tqparent->height());
mCanvas=new TQCanvas(TQT_TQOBJECT(parent));
mCanvas->resize(parent->width(),parent->height());
mCanvas->setDoubleBuffering(true);
mCanvas->setBackgroundColor(TQColor(0,0,128));
setCanvas(mCanvas);

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT
public:
Kwin4View(Kwin4Doc *theDoc, TQWidget *tqparent = 0, const char *name=0);
Kwin4View(Kwin4Doc *theDoc, TQWidget *parent = 0, const char *name=0);
void initView(bool deleteall=true);
void drawBoard(bool remove=false);

@ -31,8 +31,8 @@
#define COL_STATUSDARK TQColor(0,0,65)
#define COL_STATUSLIGHT TQColor(210,210,255)
ScoreWidget::ScoreWidget( TQWidget* tqparent, const char* name, WFlags fl )
: TQFrame( tqparent, name, fl )
ScoreWidget::ScoreWidget( TQWidget* parent, const char* name, WFlags fl )
: TQFrame( parent, name, fl )
{
setFrameStyle( TQFrame::Box | TQFrame::Raised );
setLineWidth( 2 );

@ -14,7 +14,7 @@ class ScoreWidget : public TQFrame
TQ_OBJECT
public:
ScoreWidget( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
ScoreWidget( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
void setMove(int i);
void setLevel(int i);
void setChance(int i);

@ -44,19 +44,19 @@ void setGameType(uint type)
internal->setGameType(type);
}
bool configure(TQWidget *tqparent)
bool configure(TQWidget *parent)
{
internal->checkFirst();
ConfigDialog *cd = new ConfigDialog(tqparent);
ConfigDialog *cd = new ConfigDialog(parent);
cd->exec();
bool saved = cd->hasBeenSaved();
delete cd;
return saved;
}
void show(TQWidget *tqparent, int rank)
void show(TQWidget *parent, int rank)
{
HighscoresDialog *hd = new HighscoresDialog(rank, tqparent);
HighscoresDialog *hd = new HighscoresDialog(rank, parent);
hd->exec();
delete hd;
}

@ -51,17 +51,17 @@ KDE_EXPORT void setGameType(uint gameType);
* Configure the highscores.
* @return true if the configuration has been modified and saved
*/
KDE_EXPORT bool configure(TQWidget *tqparent);
KDE_EXPORT bool configure(TQWidget *parent);
/**
* Show the highscores lists.
*/
KDE_EXPORT void show(TQWidget *tqparent);
KDE_EXPORT void show(TQWidget *parent);
/**
* Submit a score. See @ref Manager for usage example.
*
* @param widget a widget used as tqparent for error message box.
* @param widget a widget used as parent for error message box.
*/
KDE_EXPORT void submitScore(const Score &score, TQWidget *widget);

@ -58,8 +58,8 @@ void ShowItem::paintCell(TQPainter *p, const TQColorGroup &cg,
}
//-----------------------------------------------------------------------------
ScoresList::ScoresList(TQWidget *tqparent)
: KListView(tqparent)
ScoresList::ScoresList(TQWidget *parent)
: KListView(parent)
{
setSelectionMode(TQListView::NoSelection);
setItemMargin(3);
@ -99,8 +99,8 @@ void ScoresList::addLineItem(const ItemArray &items,
}
//-----------------------------------------------------------------------------
HighscoresList::HighscoresList(TQWidget *tqparent)
: ScoresList(tqparent)
HighscoresList::HighscoresList(TQWidget *parent)
: ScoresList(parent)
{}
TQString HighscoresList::itemText(const ItemContainer &item, uint row) const
@ -120,8 +120,8 @@ void HighscoresList::load(const ItemArray &items, int highlight)
}
//-----------------------------------------------------------------------------
HighscoresWidget::HighscoresWidget(TQWidget *tqparent)
: TQWidget(tqparent, "show_highscores_widget"),
HighscoresWidget::HighscoresWidget(TQWidget *parent)
: TQWidget(parent, "show_highscores_widget"),
_scoresUrl(0), _playersUrl(0), _statsTab(0), _histoTab(0)
{
const ScoreInfos &s = internal->scoreInfos();
@ -197,10 +197,10 @@ void HighscoresWidget::load(int rank)
}
//-----------------------------------------------------------------------------
HighscoresDialog::HighscoresDialog(int rank, TQWidget *tqparent)
HighscoresDialog::HighscoresDialog(int rank, TQWidget *parent)
: KDialogBase(internal->nbGameTypes()>1 ? TreeList : Plain,
i18n("Highscores"), Close|User1|User2, Close,
tqparent, "show_highscores", true, true,
parent, "show_highscores", true, true,
KGuiItem(i18n("Configure..."), "configure"),
KGuiItem(i18n("Export..."))), _rank(rank), _tab(0)
{
@ -270,8 +270,8 @@ void HighscoresDialog::slotUser2()
//-----------------------------------------------------------------------------
LastMultipleScoresList::LastMultipleScoresList(
const TQValueVector<Score> &scores, TQWidget *tqparent)
: ScoresList(tqparent), _scores(scores)
const TQValueVector<Score> &scores, TQWidget *parent)
: ScoresList(parent), _scores(scores)
{
const ScoreInfos &s = internal->scoreInfos();
addHeader(s);
@ -307,8 +307,8 @@ TQString LastMultipleScoresList::itemText(const ItemContainer &item,
//-----------------------------------------------------------------------------
TotalMultipleScoresList::TotalMultipleScoresList(
const TQValueVector<Score> &scores, TQWidget *tqparent)
: ScoresList(tqparent), _scores(scores)
const TQValueVector<Score> &scores, TQWidget *parent)
: ScoresList(parent), _scores(scores)
{
const ScoreInfos &s = internal->scoreInfos();
addHeader(s);
@ -352,10 +352,10 @@ TQString TotalMultipleScoresList::itemText(const ItemContainer &item,
//-----------------------------------------------------------------------------
ConfigDialog::ConfigDialog(TQWidget *tqparent)
ConfigDialog::ConfigDialog(TQWidget *parent)
: KDialogBase(Swallow, i18n("Configure Highscores"),
Ok|Apply|Cancel, Cancel,
tqparent, "configure_highscores", true, true),
parent, "configure_highscores", true, true),
_saved(false), _WWHEnabled(0)
{
TQWidget *page = 0;
@ -516,9 +516,9 @@ bool ConfigDialog::save()
}
//-----------------------------------------------------------------------------
AskNameDialog::AskNameDialog(TQWidget *tqparent)
AskNameDialog::AskNameDialog(TQWidget *parent)
: KDialogBase(Plain, i18n("Enter Your Nickname"), Ok | Cancel, Ok,
tqparent, "ask_name_dialog")
parent, "ask_name_dialog")
{
internal->hsConfig().readCurrentConfig();

@ -60,7 +60,7 @@ class ScoresList : public KListView
Q_OBJECT
TQ_OBJECT
public:
ScoresList(TQWidget *tqparent);
ScoresList(TQWidget *parent);
void addHeader(const ItemArray &);
@ -79,7 +79,7 @@ class HighscoresList : public ScoresList
Q_OBJECT
TQ_OBJECT
public:
HighscoresList(TQWidget *tqparent);
HighscoresList(TQWidget *parent);
void load(const ItemArray &, int highlight);
@ -92,7 +92,7 @@ class HighscoresWidget : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
HighscoresWidget(TQWidget *tqparent);
HighscoresWidget(TQWidget *parent);
void load(int rank);
@ -118,7 +118,7 @@ class HighscoresDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
HighscoresDialog(int rank, TQWidget *tqparent);
HighscoresDialog(int rank, TQWidget *parent);
private slots:
void slotUser1();
@ -138,7 +138,7 @@ class LastMultipleScoresList : public ScoresList
Q_OBJECT
TQ_OBJECT
public:
LastMultipleScoresList(const TQValueVector<Score> &, TQWidget *tqparent);
LastMultipleScoresList(const TQValueVector<Score> &, TQWidget *parent);
private:
void addLineItem(const ItemArray &, uint index, TQListViewItem *line);
@ -153,7 +153,7 @@ class TotalMultipleScoresList : public ScoresList
Q_OBJECT
TQ_OBJECT
public:
TotalMultipleScoresList(const TQValueVector<Score> &, TQWidget *tqparent);
TotalMultipleScoresList(const TQValueVector<Score> &, TQWidget *parent);
private:
void addLineItem(const ItemArray &, uint index, TQListViewItem *line);
@ -169,7 +169,7 @@ class ConfigDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
ConfigDialog(TQWidget *tqparent);
ConfigDialog(TQWidget *parent);
bool hasBeenSaved() const { return _saved; }
@ -197,7 +197,7 @@ class AskNameDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
AskNameDialog(TQWidget *tqparent);
AskNameDialog(TQWidget *parent);
TQString name() const { return _edit->text(); }
bool dontAskAgain() const { return _checkbox->isChecked(); }

@ -602,15 +602,15 @@ const char *DUMMY_STRINGS[] = {
const char *UNABLE_TO_CONTACT =
I18N_NOOP("Unable to contact world-wide highscore server");
bool ManagerPrivate::doQuery(const KURL &url, TQWidget *tqparent,
bool ManagerPrivate::doQuery(const KURL &url, TQWidget *parent,
TQDomNamedNodeMap *map)
{
KIO::http_update_cache(url, true, 0); // remove cache !
TQString tmpFile;
if ( !KIO::NetAccess::download(url, tmpFile, tqparent) ) {
if ( !KIO::NetAccess::download(url, tmpFile, parent) ) {
TQString details = i18n("Server URL: %1").tqarg(url.host());
KMessageBox::detailedSorry(tqparent, i18n(UNABLE_TO_CONTACT), details);
KMessageBox::detailedSorry(parent, i18n(UNABLE_TO_CONTACT), details);
return false;
}
@ -618,7 +618,7 @@ bool ManagerPrivate::doQuery(const KURL &url, TQWidget *tqparent,
if ( !file.open(IO_ReadOnly) ) {
KIO::NetAccess::removeTempFile(tmpFile);
TQString details = i18n("Unable to open temporary file.");
KMessageBox::detailedSorry(tqparent, i18n(UNABLE_TO_CONTACT), details);
KMessageBox::detailedSorry(parent, i18n(UNABLE_TO_CONTACT), details);
return false;
}
@ -641,24 +641,24 @@ bool ManagerPrivate::doQuery(const KURL &url, TQWidget *tqparent,
TQString msg = i18n(attr.value().latin1());
TQString caption = i18n("Message from world-wide highscores "
"server");
KMessageBox::sorry(tqparent, msg, caption);
KMessageBox::sorry(parent, msg, caption);
return false;
}
}
}
TQString msg = i18n("Invalid answer from world-wide highscores server.");
TQString details = i18n("Raw message: %1").tqarg(content);
KMessageBox::detailedSorry(tqparent, msg, details);
KMessageBox::detailedSorry(parent, msg, details);
return false;
}
bool ManagerPrivate::getFromQuery(const TQDomNamedNodeMap &map,
const TQString &name, TQString &value,
TQWidget *tqparent)
TQWidget *parent)
{
TQDomAttr attr = map.namedItem(name).toAttr();
if ( attr.isNull() ) {
KMessageBox::sorry(tqparent,
KMessageBox::sorry(parent,
i18n("Invalid answer from world-wide "
"highscores server (missing item: %1).").tqarg(name));
return false;

@ -264,11 +264,11 @@ class ManagerPrivate
// return -1 if not a local best score
int rank(const Score &score) const;
bool submitWorldWide(const Score &score, TQWidget *tqparent) const;
static bool doQuery(const KURL &url, TQWidget *tqparent,
bool submitWorldWide(const Score &score, TQWidget *parent) const;
static bool doQuery(const KURL &url, TQWidget *parent,
TQDomNamedNodeMap *map = 0);
static bool getFromQuery(const TQDomNamedNodeMap &map, const TQString &name,
TQString &value, TQWidget *tqparent);
TQString &value, TQWidget *parent);
void convertToGlobal();
};

@ -238,7 +238,7 @@ void MultiplayerScores::addScore(uint i, const Score &score)
_scores[i]._data["nb won games"] = won;
}
void MultiplayerScores::show(TQWidget *tqparent)
void MultiplayerScores::show(TQWidget *parent)
{
// check consistency
if ( _nbGames.size()<2 ) kdWarning(11002) << "less than 2 players" << endl;
@ -271,7 +271,7 @@ void MultiplayerScores::show(TQWidget *tqparent)
// show the scores
KDialogBase dialog(KDialogBase::Plain, i18n("Multiplayers Scores"),
KDialogBase::Close, KDialogBase::Close,
tqparent, "show_multiplayers_score", true, true);
parent, "show_multiplayers_score", true, true);
TQHBoxLayout *hbox = new TQHBoxLayout(dialog.plainPage(),
KDialog::marginHint(), KDialog::spacingHint());

@ -294,7 +294,7 @@ class KDE_EXPORT MultiplayerScores
/**
* Show scores.
*/
void show(TQWidget *tqparent);
void show(TQWidget *parent);
private:
TQValueVector<uint> _nbGames;

@ -39,8 +39,8 @@ namespace KExtHighscore
{
//-----------------------------------------------------------------------------
PlayersCombo::PlayersCombo(TQWidget *tqparent, const char *name)
: TQComboBox(tqparent, name)
PlayersCombo::PlayersCombo(TQWidget *parent, const char *name)
: TQComboBox(parent, name)
{
const PlayerInfos &p = internal->playerInfos();
for (uint i = 0; i<p.nbEntries(); i++)
@ -65,8 +65,8 @@ void PlayersCombo::load()
}
//-----------------------------------------------------------------------------
AdditionalTab::AdditionalTab(TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name)
AdditionalTab::AdditionalTab(TQWidget *parent, const char *name)
: TQWidget(parent, name)
{
TQVBoxLayout *top = new TQVBoxLayout(this, KDialogBase::marginHint(),
KDialogBase::spacingHint());
@ -116,8 +116,8 @@ const char *StatisticsTab::TREND_LABELS[Nb_Trends] = {
I18N_NOOP("Current:"), I18N_NOOP("Max won:"), I18N_NOOP("Max lost:")
};
StatisticsTab::StatisticsTab(TQWidget *tqparent)
: AdditionalTab(tqparent, "statistics_tab")
StatisticsTab::StatisticsTab(TQWidget *parent)
: AdditionalTab(parent, "statistics_tab")
{
// construct GUI
TQVBoxLayout *top = static_cast<TQVBoxLayout *>(tqlayout());
@ -205,8 +205,8 @@ void StatisticsTab::display(uint i)
}
//-----------------------------------------------------------------------------
HistogramTab::HistogramTab(TQWidget *tqparent)
: AdditionalTab(tqparent, "histogram_tab")
HistogramTab::HistogramTab(TQWidget *parent)
: AdditionalTab(parent, "histogram_tab")
{
// construct GUI
TQVBoxLayout *top = static_cast<TQVBoxLayout *>(tqlayout());

@ -36,7 +36,7 @@ class PlayersCombo : public TQComboBox
Q_OBJECT
TQ_OBJECT
public:
PlayersCombo(TQWidget *tqparent = 0, const char *name = 0);
PlayersCombo(TQWidget *parent = 0, const char *name = 0);
void load();
@ -55,7 +55,7 @@ class AdditionalTab : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
AdditionalTab(TQWidget *tqparent, const char *name);
AdditionalTab(TQWidget *parent, const char *name);
virtual void load();
@ -78,7 +78,7 @@ class StatisticsTab : public AdditionalTab
Q_OBJECT
TQ_OBJECT
public:
StatisticsTab(TQWidget *tqparent);
StatisticsTab(TQWidget *parent);
void load();
@ -104,7 +104,7 @@ class HistogramTab : public AdditionalTab
Q_OBJECT
TQ_OBJECT
public:
HistogramTab(TQWidget *tqparent);
HistogramTab(TQWidget *parent);
void load();

@ -56,14 +56,14 @@ static KStaticDeleter<KFileLock> lockSD;
static KStaticDeleter<KRawConfig> configSD;
KHighscore::KHighscore(TQObject* tqparent)
: TQObject(tqparent)
KHighscore::KHighscore(TQObject* parent)
: TQObject(parent)
{
init(true);
}
KHighscore::KHighscore(bool forceLocal, TQObject* tqparent)
: TQObject(tqparent)
KHighscore::KHighscore(bool forceLocal, TQObject* parent)
: TQObject(parent)
{
init(forceLocal);
}

@ -90,7 +90,7 @@ public:
* Constructor. The highscore file is forced to be local to support
* games using the old behaviour.
*/
KHighscore(TQObject* tqparent = 0);
KHighscore(TQObject* parent = 0);
/**
* Constructor.
@ -98,10 +98,10 @@ public:
* @param forceLocal if true, the local highscore file is used even
* when the configuration has been set to use a system-wide file. This
* is convenient for converting highscores from legacy applications.
* @param tqparent tqparent widget for this widget
* @param parent parent widget for this widget
* @since 3.2
*/
KHighscore(bool forceLocal, TQObject *tqparent);
KHighscore(bool forceLocal, TQObject *parent);
/**
* Read the current state of the highscore file. Remember that when
@ -133,7 +133,7 @@ public:
* If the config file cannot be locked,
* the method waits for 1 second and, if it failed again, displays
* a message box asking for retry or cancel.
* @param widget used as the tqparent of the message box.
* @param widget used as the parent of the message box.
*
* @return false on error or if the config file is locked by another
* process. In such case, the config stays read-only.

@ -64,8 +64,8 @@ public:
};
KScoreDialog::KScoreDialog(int fields, TQWidget *tqparent, const char *oname)
: KDialogBase(tqparent, oname, true, i18n("High Scores"), Ok, Ok, true)
KScoreDialog::KScoreDialog(int fields, TQWidget *parent, const char *oname)
: KDialogBase(parent, oname, true, i18n("High Scores"), Ok, Ok, true)
{
d = new KScoreDialogPrivate();
d->edit = 0;

@ -57,10 +57,10 @@ public:
/**
* @param fields Which fields should be listed.
* @param tqparent passed to tqparent TQWidget constructor
* @param name passed to tqparent TQWidget constructor
* @param parent passed to parent TQWidget constructor
* @param name passed to parent TQWidget constructor
*/
KScoreDialog(int fields, TQWidget *tqparent=0, const char *name=0);
KScoreDialog(int fields, TQWidget *parent=0, const char *name=0);
~KScoreDialog();

@ -528,8 +528,8 @@ KCardDialog::~KCardDialog()
// Create the dialog
KCardDialog::KCardDialog( TQWidget *tqparent, const char *name, CardFlags mFlags)
: KDialogBase( Plain, i18n("Carddeck Selection"), Ok|Cancel, Ok, tqparent, name, true, true)
KCardDialog::KCardDialog( TQWidget *parent, const char *name, CardFlags mFlags)
: KDialogBase( Plain, i18n("Carddeck Selection"), Ok|Cancel, Ok, parent, name, true, true)
{
KCardDialog::init();

@ -104,11 +104,11 @@ public:
/**
* Constructs a card deck selection dialog.
*
* @param tqparent The tqparent widget of the dialog, if any.
* @param parent The parent widget of the dialog, if any.
* @param name The name of the dialog.
* @param flags Specifies whether the dialog is modal or not.
*/
KCardDialog (TQWidget* tqparent = NULL,const char* name = NULL,
KCardDialog (TQWidget* parent = NULL,const char* name = NULL,
CardFlags flags = Both);
/**
* Destructs a card deck selection dialog.
@ -126,7 +126,7 @@ public:
* @param carddir a reference to the directory name used as front of the
* cards. The directory contains the card images as 1.png to 52.png
*
* @param tqparent an optional pointer to the tqparent window of the dialog
* @param parent an optional pointer to the parent window of the dialog
*
* @param flags what to show
*
@ -154,7 +154,7 @@ public:
*
* @return TQDialog::result().
*/
static int getCardDeck(TQString &deck,TQString &carddir, TQWidget *tqparent=0,
static int getCardDeck(TQString &deck,TQString &carddir, TQWidget *parent=0,
CardFlags flags=Both, bool* randomDeck=0,
bool* randomCardDir=0, double* scale=0, KConfig* conf=0);

@ -36,7 +36,7 @@ public:
int mFromId;
};
KChat::KChat(TQWidget* tqparent, bool twoPlayerGame) : KChatBase(tqparent, twoPlayerGame)
KChat::KChat(TQWidget* parent, bool twoPlayerGame) : KChatBase(parent, twoPlayerGame)
{
init();
}

@ -39,12 +39,12 @@ class KDE_EXPORT KChat : public KChatBase
TQ_OBJECT
public:
/**
* @param tqparent The tqparent widget for this widget.
* @param parent The parent widget for this widget.
* @param twoPlayerGame If true the combo box where the player can
* choose to send to a single player or to all players will not be added
* as you will hardly need it in 2-player games.
**/
KChat(TQWidget* tqparent, bool twoPlayerGame = false);
KChat(TQWidget* parent, bool twoPlayerGame = false);
virtual ~KChat();

@ -182,7 +182,7 @@ public:
TQFont mSystemMessageFont;
};
KChatBase::KChatBase(TQWidget* tqparent, bool noComboBox) : TQFrame(tqparent)
KChatBase::KChatBase(TQWidget* parent, bool noComboBox) : TQFrame(parent)
{
init(noComboBox);
}

@ -187,12 +187,12 @@ class KDE_EXPORT KChatBase : public TQFrame
TQ_OBJECT
public:
/**
* @param tqparent The tqparent widget for this widget.
* @param parent The parent widget for this widget.
* @param noComboBox If true then the combo box where the player can
* choose where to send messages to (either globally or just to some
* players) will not be added.
**/
KChatBase(TQWidget* tqparent, bool noComboBox = false);
KChatBase(TQWidget* parent, bool noComboBox = false);
/**
* Destruct the KChatBase object

@ -55,17 +55,17 @@ class KChatDialogPrivate
KChatBase* mChat;
};
KChatDialog::KChatDialog(KChatBase* chat, TQWidget* tqparent, bool modal)
// : KDialogBase(Tabbed, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, tqparent, 0, modal, true)
: KDialogBase(Plain, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, tqparent, 0, modal, true)
KChatDialog::KChatDialog(KChatBase* chat, TQWidget* parent, bool modal)
// : KDialogBase(Tabbed, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true)
: KDialogBase(Plain, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true)
{
init();
plugChatWidget(chat);
}
KChatDialog::KChatDialog(TQWidget* tqparent, bool modal)
// : KDialogBase(Tabbed, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, tqparent, 0, modal, true)
: KDialogBase(Plain, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, tqparent, 0, modal, true)
KChatDialog::KChatDialog(TQWidget* parent, bool modal)
// : KDialogBase(Tabbed, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true)
: KDialogBase(Plain, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true)
{
init();
}

@ -35,14 +35,14 @@ public:
/**
* Construct a KChatDialog widget
**/
KChatDialog(TQWidget* tqparent, bool modal = false);
KChatDialog(TQWidget* parent, bool modal = false);
/**
* Construct a KChatDialog widget which automatically configures the
* @ref KChatBase widget. You probably want to use this as you don't
* have to care about the configuration stuff yourself.
**/
KChatDialog(KChatBase* chatWidget, TQWidget* tqparent, bool modal = false);
KChatDialog(KChatBase* chatWidget, TQWidget* parent, bool modal = false);
/**
* Destruct the dialog

@ -56,7 +56,7 @@ class KGameConnectWidgetPrivate
TQString mType;
};
KGameConnectWidget::KGameConnectWidget(TQWidget* tqparent) : TQWidget(tqparent)
KGameConnectWidget::KGameConnectWidget(TQWidget* parent) : TQWidget(parent)
{
d = new KGameConnectWidgetPrivate;
@ -212,9 +212,9 @@ class KGameConnectDialogPrivate
KGameConnectWidget* mConnect;
};
// buttontqmask =Ok|Cancel
KGameConnectDialog::KGameConnectDialog(TQWidget* tqparent,int buttontqmask) : KDialogBase(Plain,
i18n("Network Game"),buttontqmask , Ok, tqparent, 0, true, buttontqmask!=0)
// buttonmask =Ok|Cancel
KGameConnectDialog::KGameConnectDialog(TQWidget* parent,int buttonmask) : KDialogBase(Plain,
i18n("Network Game"),buttonmask , Ok, parent, 0, true, buttonmask!=0)
{
d = new KGameConnectDialogPrivate;
TQVBoxLayout* vb = new TQVBoxLayout(plainPage(), spacingHint());
@ -228,9 +228,9 @@ KGameConnectDialog::~KGameConnectDialog()
}
int KGameConnectDialog::initConnection( unsigned short int& port,
TQString& host, TQWidget* tqparent, bool server)
TQString& host, TQWidget* parent, bool server)
{
KGameConnectDialog d(tqparent);
KGameConnectDialog d(parent);
d.setHost(host);
d.setPort(port);
if (server) {

@ -31,7 +31,7 @@ class KGameConnectWidget : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
KGameConnectWidget(TQWidget* tqparent);
KGameConnectWidget(TQWidget* parent);
virtual ~KGameConnectWidget();
/**
@ -109,8 +109,8 @@ private:
* @short Dialog to ask for host and port
*
* This Dialog is used to create a game. You call initConnection(port,
* TQString(), tqparent, true) to create a network game (as a server)
* or initConnection(port, host, tqparent) to join a network game.
* TQString(), parent, true) to create a network game (as a server)
* or initConnection(port, host, parent) to join a network game.
*
* @author Andreas Beckermann <b_mann@gmx.de>
**/
@ -119,7 +119,7 @@ class KGameConnectDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
KGameConnectDialog(TQWidget* tqparent = 0,int buttontqmask=Ok|Cancel);
KGameConnectDialog(TQWidget* parent = 0,int buttonmask=Ok|Cancel);
virtual ~KGameConnectDialog();
/**
@ -128,11 +128,11 @@ public:
* @param port The port the user wants to connect to.
* @param host The host the user wants to connect to. Will be
* TQString() if server game is chosen
* @param tqparent The tqparent of the dialog
* @param parent The parent of the dialog
* @param server True to create a network game per default, false to
* join a game by default
**/
static int initConnection(unsigned short int& port, TQString& host, TQWidget* tqparent, bool server = false);
static int initConnection(unsigned short int& port, TQString& host, TQWidget* parent, bool server = false);
/**
* @param host The host to connect to by default

@ -120,9 +120,9 @@ public:
KListBox* mHideIdList;
};
KGameDebugDialog::KGameDebugDialog(KGame* g, TQWidget* tqparent, bool modal) :
KGameDebugDialog::KGameDebugDialog(KGame* g, TQWidget* parent, bool modal) :
KDialogBase(Tabbed, i18n("KGame Debug Dialog"), Close, Close,
tqparent, 0, modal, true)
parent, 0, modal, true)
{
d = new KGameDebugDialogPrivate;

@ -36,7 +36,7 @@ class KDE_EXPORT KGameDebugDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
KGameDebugDialog(KGame* g, TQWidget* tqparent, bool modal = false);
KGameDebugDialog(KGame* g, TQWidget* parent, bool modal = false);
~KGameDebugDialog();
/**

@ -64,17 +64,17 @@ public:
};
KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
TQWidget* tqparent, bool modal)
TQWidget* parent, bool modal)
: KDialogBase(Tabbed, title, Ok|Default|Apply,
Ok, tqparent, 0, modal, true)
Ok, parent, 0, modal, true)
{
init(g, owner);
}
KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
TQWidget* tqparent, long initConfigs, int chatMsgId, bool modal)
TQWidget* parent, long initConfigs, int chatMsgId, bool modal)
: KDialogBase(Tabbed, title, Ok|Default|Apply,
Ok, tqparent, 0, modal, true)
Ok, parent, 0, modal, true)
{
init(g, owner);
if ((ConfigOptions)initConfigs!=NoConfig) {
@ -165,34 +165,34 @@ void KGameDialog::addMsgServerConfig(KGameDialogMsgServerConfig* msgConf)
d->mMsgServerPage = addConfigPage(msgConf, i18n("&Message Server"));
}
void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, TQVBox* tqparent)
void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, TQVBox* parent)
{
if (!chat) {
return;
}
if (!tqparent) {
tqparent = d->mGamePage;
if (!parent) {
parent = d->mGamePage;
}
if (!tqparent) {
if (!parent) {
kdError(11001) << "cannot add chat widget without page" << endl;
return;
}
addConfigWidget(chat, tqparent);
addConfigWidget(chat, parent);
}
void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, TQVBox* tqparent)
void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, TQVBox* parent)
{
if (!c) {
return;
}
if (!tqparent) {
tqparent = d->mNetworkPage;
if (!parent) {
parent = d->mNetworkPage;
}
if (!tqparent) {
if (!parent) {
kdError(11001) << "Cannot add connection list without page" << endl;
return;
}
addConfigWidget(c, tqparent);
addConfigWidget(c, parent);
}
TQVBox *KGameDialog::configPage(ConfigOptions which)
@ -226,18 +226,18 @@ TQVBox* KGameDialog::addConfigPage(KGameDialogConfig* widget, const TQString& ti
return page;
}
void KGameDialog::addConfigWidget(KGameDialogConfig* widget, TQWidget* tqparent)
void KGameDialog::addConfigWidget(KGameDialogConfig* widget, TQWidget* parent)
{
if (!widget) {
kdError(11001) << "Cannot add NULL config widget" << endl;
return;
}
if (!tqparent) {
if (!parent) {
kdError(11001) << "Cannot reparent to NULL widget" << endl;
return;
}
// kdDebug(11001) << "reparenting widget" << endl;
widget->reparent(tqparent, TQPoint(0,0));
widget->reparent(parent, TQPoint(0,0));
d->mConfigWidgets.append(widget);
connect(widget, TQT_SIGNAL(destroyed(TQObject*)), this, TQT_SLOT(slotRemoveConfigWidget(TQObject*)));
if (!d->mGame) {

@ -95,11 +95,11 @@ public:
* @param owner The KPlayer object who is responsible for this
* dialog, aka "the local player"
* @param title The title of the dialog - see KDialog::setCaption
* @param tqparent The tqparent of the dialog
* @param parent The parent of the dialog
* @param modal Whether the dialog is modal or not
**/
KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
TQWidget* tqparent, bool modal = false);
TQWidget* parent, bool modal = false);
/**
* Create a KGameDialog with the standard configuration widgets. This
@ -122,7 +122,7 @@ public:
* @param owner The KPlayer object who is responsible for this
* dialog, aka "the local player"
* @param title The title of the dialog - see KDialog::setCaption
* @param tqparent The tqparent of the dialog
* @param parent The parent of the dialog
* @param modal Whether the dialog is modal or not
* @param initConfigs whether the default KGameDialogConfig widgets
* shall be created using initDefaultDialog. Use false if you want
@ -131,7 +131,7 @@ public:
* if initConfigs = false
**/
KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
TQWidget* tqparent, long initConfigs = AllConfig,
TQWidget* parent, long initConfigs = AllConfig,
int chatMsgId = 15432, bool modal = false);
virtual ~KGameDialog();
@ -169,14 +169,14 @@ public:
virtual void submitToKGame();
/**
* Adds a KGameChat to the dialog. If no tqparent is specified the
* Adds a KGameChat to the dialog. If no parent is specified the
* game page will be used.
* @param chat The chat widget
* @param tqparent The tqparent of the chat widget. This MUST be an
* @param parent The parent of the chat widget. This MUST be an
* already added config widget. Note that the game page will be used
* if tqparent is 0.
* if parent is 0.
**/
void addChatWidget(KGameDialogChatConfig* chat, TQVBox* tqparent = 0);
void addChatWidget(KGameDialogChatConfig* chat, TQVBox* parent = 0);
/**
* Add a connection list to the dialog. The list consists of a
@ -187,10 +187,10 @@ public:
* This is another not-really-config-config-widget. It just displays the
* connections and lets you ban players.
* @param c The KGameDialogConnectionConfig object
* @param tqparent The tqparent of the widget. If 0 the networkConfig
* @param parent The parent of the widget. If 0 the networkConfig
* page is used.
**/
void addConnectionList(KGameDialogConnectionConfig* c, TQVBox* tqparent = 0);
void addConnectionList(KGameDialogConnectionConfig* c, TQVBox* parent = 0);
/**
* Add a new page to the dialog. The page will contain you new config
@ -223,12 +223,12 @@ public:
KGameDialogGeneralConfig* gameConfig() const;
/**
* Add a config widget to the specified tqparent. Usually you call
* Add a config widget to the specified parent. Usually you call
* addConfigPage for one widget and addConfigWidget for another to add
* it to the same page. Just use the returned page of
* addConfigPage.
**/
void addConfigWidget(KGameDialogConfig* widget, TQWidget* tqparent);
void addConfigWidget(KGameDialogConfig* widget, TQWidget* parent);
/**
* Used to add the main network config widget in a new page. Use this to

@ -57,7 +57,7 @@ public:
KPlayer* mOwner;
};
KGameDialogConfig::KGameDialogConfig(TQWidget* tqparent) : TQWidget(tqparent)
KGameDialogConfig::KGameDialogConfig(TQWidget* parent) : TQWidget(parent)
{
d = new KGameDialogConfigPrivate;
}
@ -116,8 +116,8 @@ public:
};
KGameDialogNetworkConfig::KGameDialogNetworkConfig(TQWidget* tqparent)
: KGameDialogConfig(tqparent)
KGameDialogNetworkConfig::KGameDialogNetworkConfig(TQWidget* parent)
: KGameDialogConfig(parent)
{
// kdDebug(11001) << k_funcinfo << ": this=" << this << endl;
d = new KGameDialogNetworkConfigPrivate();
@ -261,8 +261,8 @@ public:
TQVBoxLayout* mTopLayout;
};
KGameDialogGeneralConfig::KGameDialogGeneralConfig(TQWidget* tqparent, bool initializeGUI)
: KGameDialogConfig(tqparent)
KGameDialogGeneralConfig::KGameDialogGeneralConfig(TQWidget* parent, bool initializeGUI)
: KGameDialogConfig(parent)
{
// kdDebug(11001) << k_funcinfo << ": this=" << this << endl;
d = new KGameDialogGeneralConfigPrivate;
@ -388,8 +388,8 @@ public:
// TODO: change ADMIN ID, remove CLIENTS, change MAXCLIENTS
// we do everything here with TQPushButtons as we want to wait a moment before
// continuing - the message must be sent over network first
KGameDialogMsgServerConfig::KGameDialogMsgServerConfig(TQWidget* tqparent)
: KGameDialogConfig(tqparent)
KGameDialogMsgServerConfig::KGameDialogMsgServerConfig(TQWidget* parent)
: KGameDialogConfig(parent)
{
d = new KGameDialogMsgServerConfigPrivate;
@ -547,8 +547,8 @@ public:
KGameChat* mChat;
};
KGameDialogChatConfig::KGameDialogChatConfig(int chatMsgId, TQWidget* tqparent)
: KGameDialogConfig(tqparent)
KGameDialogChatConfig::KGameDialogChatConfig(int chatMsgId, TQWidget* parent)
: KGameDialogConfig(parent)
{
d = new KGameDialogChatConfigPrivate;
TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
@ -599,8 +599,8 @@ public:
KListBox* mPlayerBox;
};
KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* tqparent)
: KGameDialogConfig(tqparent)
KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* parent)
: KGameDialogConfig(parent)
{
//TODO: prevent player to ban himself
d = new KGameDialogConnectionConfigPrivate;

@ -53,7 +53,7 @@ class KDE_EXPORT KGameDialogConfig : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
KGameDialogConfig(TQWidget* tqparent = 0);
KGameDialogConfig(TQWidget* parent = 0);
virtual ~KGameDialogConfig();
/**
@ -137,7 +137,7 @@ private:
* The main game configuration widget.
*
* It currently contains a line edit for the name of the player only. You can
* add widgets by using the KGameDialogGeneralConfig as tqparent parameter as it
* add widgets by using the KGameDialogGeneralConfig as parent parameter as it
* uses TQLayout::autoAdd == true.
* @author Andreas Beckermann <b_mann@gmx.de>
**/
@ -152,17 +152,17 @@ public:
* edit widget to change the player name only.
*
* If you just want to add more widgets you can just create your widgets
* with the KGameDialogGeneralConfig as tqparent as it uses
* with the KGameDialogGeneralConfig as parent as it uses
* TQLayout::setAutoAdd(true).
*
* @param tqparent Parent widget for this dialog.
* @param parent Parent widget for this dialog.
* @param initializeGUI If you really don't want to use the
* predefined widget and/or tqlayout use FALSE here. Note that then none
* of the predefined widgets (currently only the name of the player)
* will exist anymore.
*
**/
KGameDialogGeneralConfig(TQWidget* tqparent = 0, bool initializeGUI = true);
KGameDialogGeneralConfig(TQWidget* parent = 0, bool initializeGUI = true);
virtual ~KGameDialogGeneralConfig();
/**
@ -215,7 +215,7 @@ class KDE_EXPORT KGameDialogNetworkConfig : public KGameDialogConfig
Q_OBJECT
TQ_OBJECT
public:
KGameDialogNetworkConfig(TQWidget* tqparent = 0);
KGameDialogNetworkConfig(TQWidget* parent = 0);
virtual ~KGameDialogNetworkConfig();
@ -282,7 +282,7 @@ class KGameDialogMsgServerConfig : public KGameDialogConfig
Q_OBJECT
TQ_OBJECT
public:
KGameDialogMsgServerConfig(TQWidget* tqparent = 0);
KGameDialogMsgServerConfig(TQWidget* parent = 0);
virtual ~KGameDialogMsgServerConfig();
virtual void submitToKGame(KGame*, KPlayer*) {}
@ -316,7 +316,7 @@ class KGameDialogChatConfig : public KGameDialogConfig
Q_OBJECT
TQ_OBJECT
public:
KGameDialogChatConfig(int chatMsgId, TQWidget* tqparent = 0);
KGameDialogChatConfig(int chatMsgId, TQWidget* parent = 0);
virtual ~KGameDialogChatConfig();
virtual void setKGame(KGame* g);
@ -338,7 +338,7 @@ class KGameDialogConnectionConfig : public KGameDialogConfig
Q_OBJECT
TQ_OBJECT
public:
KGameDialogConnectionConfig(TQWidget* tqparent = 0);
KGameDialogConnectionConfig(TQWidget* parent = 0);
virtual ~KGameDialogConnectionConfig();
virtual void setKGame(KGame* g);

@ -37,7 +37,7 @@ public:
const KGame* mGame;
};
KGameErrorDialog::KGameErrorDialog(TQWidget* tqparent) : TQObject(tqparent)
KGameErrorDialog::KGameErrorDialog(TQWidget* parent) : TQObject(parent)
{
d = new KGameErrorDialogPrivate;
}
@ -71,14 +71,14 @@ void KGameErrorDialog::slotUnsetKGame()
d->mGame = 0;
}
void KGameErrorDialog::error(const TQString& errorText, TQWidget* tqparent)
{ KMessageBox::error(tqparent, errorText); }
void KGameErrorDialog::error(const TQString& errorText, TQWidget* parent)
{ KMessageBox::error(parent, errorText); }
void KGameErrorDialog::slotServerConnectionLost()
{
// TODO: add IP/port of the server
TQString message = i18n("Connection to the server has been lost!");
error(message, (TQWidget*)tqparent());
error(message, (TQWidget*)parent());
}
void KGameErrorDialog::slotClientConnectionLost(TQ_UINT32 /*id*/,bool)
@ -91,13 +91,13 @@ void KGameErrorDialog::slotClientConnectionLost(TQ_UINT32 /*id*/,bool)
// message = i18n("Connection to client has been lost!");
// }
message = i18n("Connection to client has been lost!");
error(message, (TQWidget*)tqparent());
error(message, (TQWidget*)parent());
}
void KGameErrorDialog::slotError(int errorNo, TQString text)
{
TQString message = i18n("Received a network error!\nError number: %1\nError message: %2").tqarg(errorNo).tqarg(text);
error(message, (TQWidget*)tqparent());
error(message, (TQWidget*)parent());
}
void KGameErrorDialog::connectionError(TQString s)
@ -108,15 +108,15 @@ void KGameErrorDialog::connectionError(TQString s)
} else {
message = i18n("No connection could be created.\nThe error message was:\n%1").tqarg(s);
}
error(message, (TQWidget*)tqparent());
error(message, (TQWidget*)parent());
}
// should become the real dialog - currently we just use messageboxes
// -> maybe unused forever
KGameErrorMessageDialog::KGameErrorMessageDialog(TQWidget* tqparent)
: KDialogBase(Plain, i18n("Error"), Ok, Ok, tqparent, 0, true, true)
KGameErrorMessageDialog::KGameErrorMessageDialog(TQWidget* parent)
: KDialogBase(Plain, i18n("Error"), Ok, Ok, parent, 0, true, true)
{
}

@ -41,7 +41,7 @@ class KGameErrorDialog : public TQObject
Q_OBJECT
TQ_OBJECT
public:
KGameErrorDialog(TQWidget* tqparent);
KGameErrorDialog(TQWidget* parent);
~KGameErrorDialog();
/**
@ -88,7 +88,7 @@ public slots:
void slotUnsetKGame();
protected:
void error(const TQString& errorText, TQWidget* tqparent = 0);
void error(const TQString& errorText, TQWidget* parent = 0);
private:
KGameErrorDialogPrivate* d;
@ -106,7 +106,7 @@ class KGameErrorMessageDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
KGameErrorMessageDialog(TQWidget* tqparent);
KGameErrorMessageDialog(TQWidget* parent);
~KGameErrorMessageDialog();
private:

@ -81,7 +81,7 @@ public:
};
// ------------------- GAME CLASS --------------------------
KGame::KGame(int cookie,TQObject* tqparent) : KGameNetwork(cookie,tqparent)
KGame::KGame(int cookie,TQObject* parent) : KGameNetwork(cookie,parent)
{
kdDebug(11001) << k_funcinfo << " - " << this << ", sizeof(KGame)=" << sizeof(KGame) << endl;
d = new KGamePrivate;

@ -101,7 +101,7 @@ public:
* game in load/save and network operations. Change this between
* games.
*/
KGame(int cookie=42,TQObject* tqparent=0);
KGame(int cookie=42,TQObject* parent=0);
/**
* Destructs the game

@ -57,18 +57,18 @@ public:
int mToMyGroup; // just as the above - but for the group, not for players
};
KGameChat::KGameChat(KGame* g, int msgid, TQWidget* tqparent) : KChatBase(tqparent)
KGameChat::KGameChat(KGame* g, int msgid, TQWidget* parent) : KChatBase(parent)
{
init(g, msgid);
}
KGameChat::KGameChat(KGame* g, int msgid, KPlayer* fromPlayer, TQWidget* tqparent) : KChatBase(tqparent)
KGameChat::KGameChat(KGame* g, int msgid, KPlayer* fromPlayer, TQWidget* parent) : KChatBase(parent)
{
init(g, msgid);
setFromPlayer(fromPlayer);
}
KGameChat::KGameChat(TQWidget* tqparent) : KChatBase(tqparent)
KGameChat::KGameChat(TQWidget* parent) : KChatBase(parent)
{
init(0, -1);
}

@ -50,14 +50,14 @@ public:
* the chat message. The @p fromPlayer is the local player (see @ref
* setFromPlayer).
**/
KGameChat(KGame* game, int msgid, KPlayer* fromPlayer, TQWidget * tqparent);
KGameChat(KGame* game, int msgid, KPlayer* fromPlayer, TQWidget * parent);
/**
* @overload
* To make use of this widget you need to call @ref setFromPlayer
* manually.
**/
KGameChat(KGame* game, int msgId, TQWidget* tqparent);
KGameChat(KGame* game, int msgId, TQWidget* parent);
/**
* @overload
@ -65,7 +65,7 @@ public:
* setGame, setFromPlayer and setMessageId manually.
* @since 3.2
**/
KGameChat(TQWidget* tqparent);
KGameChat(TQWidget* parent);
virtual ~KGameChat();

@ -117,21 +117,21 @@ void KGameIO::Debug()
// ----------------------- Key IO ---------------------------
KGameKeyIO::KGameKeyIO(TQWidget *tqparent)
KGameKeyIO::KGameKeyIO(TQWidget *parent)
: KGameIO()
{
if (tqparent)
if (parent)
{
kdDebug(11001) << "Key Event filter installed" << endl;
tqparent->installEventFilter(this);
parent->installEventFilter(this);
}
}
KGameKeyIO::~KGameKeyIO()
{
if (tqparent())
if (parent())
{
tqparent()->removeEventFilter(this);
parent()->removeEventFilter(this);
}
}
@ -167,22 +167,22 @@ bool KGameKeyIO::eventFilter( TQObject *o, TQEvent *e )
// ----------------------- Mouse IO ---------------------------
KGameMouseIO::KGameMouseIO(TQWidget *tqparent,bool trackmouse)
KGameMouseIO::KGameMouseIO(TQWidget *parent,bool trackmouse)
: KGameIO()
{
if (tqparent)
if (parent)
{
kdDebug(11001) << "Mouse Event filter installed tracking=" << trackmouse << endl;
tqparent->installEventFilter(this);
tqparent->setMouseTracking(trackmouse);
parent->installEventFilter(this);
parent->setMouseTracking(trackmouse);
}
}
KGameMouseIO::~KGameMouseIO()
{
if (tqparent())
if (parent())
{
tqparent()->removeEventFilter(this);
parent()->removeEventFilter(this);
}
}
@ -193,9 +193,9 @@ int KGameMouseIO::rtti() const
void KGameMouseIO::setMouseTracking(bool b)
{
if (tqparent())
if (parent())
{
((TQWidget*)tqparent())->setMouseTracking(b);
((TQWidget*)parent())->setMouseTracking(b);
}
}

@ -199,9 +199,9 @@ public:
* this,TQT_SLOT(slotKeyInput(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)));
* \endcode
*
* @param tqparent The parents widget whose keyboard events * should be grabbed
* @param parent The parents widget whose keyboard events * should be grabbed
*/
KGameKeyIO(TQWidget *tqparent);
KGameKeyIO(TQWidget *parent);
virtual ~KGameKeyIO();
/**
@ -265,10 +265,10 @@ public:
* this,TQT_SLOT(slotMouseInput(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)));
* \endcode
*
* @param tqparent The widget whose events should be captured
* @param parent The widget whose events should be captured
* @param trackmouse enables mouse tracking (gives mouse move events)
*/
KGameMouseIO(TQWidget *tqparent,bool trackmouse=false);
KGameMouseIO(TQWidget *parent,bool trackmouse=false);
virtual ~KGameMouseIO();
/**

@ -59,7 +59,7 @@ public:
};
// ------------------- NETWORK GAME ------------------------
KGameNetwork::KGameNetwork(int c, TQObject* tqparent) : TQObject(tqparent, 0)
KGameNetwork::KGameNetwork(int c, TQObject* parent) : TQObject(parent, 0)
{
d = new KGameNetworkPrivate;
d->mCookie = (TQ_INT16)c;

@ -52,7 +52,7 @@ public:
/**
* Create a KGameNetwork object
*/
KGameNetwork(int cookie=42,TQObject* tqparent=0);
KGameNetwork(int cookie=42,TQObject* parent=0);
virtual ~KGameNetwork();
/**

@ -29,16 +29,16 @@
#define KPLAYERHANDLER_LOAD_COOKIE 6239
KGamePropertyBase::KGamePropertyBase(int id, KGame* tqparent)
KGamePropertyBase::KGamePropertyBase(int id, KGame* parent)
{
init();
registerData(id, tqparent);
registerData(id, parent);
}
KGamePropertyBase::KGamePropertyBase(int id, KPlayer* tqparent)
KGamePropertyBase::KGamePropertyBase(int id, KPlayer* parent)
{
init();
registerData(id, tqparent);
registerData(id, parent);
}
KGamePropertyBase::KGamePropertyBase(int id, KGamePropertyHandler* owner)

@ -125,8 +125,8 @@ public:
**/
KGamePropertyBase(int id, KGamePropertyHandler* owner);
KGamePropertyBase(int id, KGame* tqparent);
KGamePropertyBase(int id, KPlayer* tqparent);
KGamePropertyBase(int id, KGame* parent);
KGamePropertyBase(int id, KPlayer* parent);
/**
* Creates a KGamePropertyBase object without an owner. Remember to call
@ -344,7 +344,7 @@ protected:
bool sendProperty(const TQByteArray& b);
/**
* Causes the tqparent object to emit a signal on value change
* Causes the parent object to emit a signal on value change
**/
void emitSignal();
@ -413,7 +413,7 @@ private:
* property. This is achieved by using send to change the value of the
* property. send needs a running KMessageServer and therefore
* <em>MUST</em> be plugged into a KGamePropertyHandler using either
* registerData or the constructor. The tqparent of the dataHandler must be able
* registerData or the constructor. The parent of the dataHandler must be able
* to send messages (see above: the message server must be running). If you use
* send to change the value of a property you won't see the effect
* immediately: The new value is first transferred to the message server which
@ -588,12 +588,12 @@ public:
* @param id The id of this property. <em>MUST be UNITQUE</em>! Used to send and
* receive changes in the property of the playere automatically via
* network.
* @param owner The tqparent of the object. Must be a KGame which manages
* @param owner The parent of the object. Must be a KGame which manages
* the changes made to this object, i.e. which will send the new data.
* Note that in contrast to most KDE/QT classes KGameProperty objects
* are <em>not</em> deleted automatically!
**/
// TODO: ID: Very ugly - better use something like tqparent()->propertyId() or so which assigns a free id automatically.
// TODO: ID: Very ugly - better use something like parent()->propertyId() or so which assigns a free id automatically.
KGameProperty(int id, KGamePropertyHandler* owner) : KGamePropertyBase(id, owner) { init(); }
/**
@ -651,7 +651,7 @@ public:
* \endcode
* as myProperty has not yet been set when doSomething is being called.
*
* You are informed about a value change by a singal from the tqparent of
* You are informed about a value change by a singal from the parent of
* the property which can be deactivated by setEmittingSignal because of
* performance (you probably don't have to deactivate it - except you
* want to write a real-time game like Command&Conquer with a lot of

@ -51,13 +51,13 @@ public:
TQPtrQueue<KGamePropertyBase> mSignalQueue;
};
KGamePropertyHandler::KGamePropertyHandler(int id, const TQObject* receiver, const char * sendf, const char *emitf, TQObject* tqparent) : TQObject(tqparent)
KGamePropertyHandler::KGamePropertyHandler(int id, const TQObject* receiver, const char * sendf, const char *emitf, TQObject* parent) : TQObject(parent)
{
init();
registerHandler(id,receiver,sendf,emitf);
}
KGamePropertyHandler::KGamePropertyHandler(TQObject* tqparent) : TQObject(tqparent)
KGamePropertyHandler::KGamePropertyHandler(TQObject* parent) : TQObject(parent)
{
init();
}

@ -43,8 +43,8 @@ class KGamePropertyHandlerPrivate; // wow - what a name ;-)
* to care about the KGamePropertHandler. KGame and KPlayer implement
* all features of KGamePropertyHandler so you will rather use it there.
*
* You have to use the KGamePropertyHandler as tqparent for all KGameProperty
* objects but you can also use KPlayer or KGame as tqparent - then
* You have to use the KGamePropertyHandler as parent for all KGameProperty
* objects but you can also use KPlayer or KGame as parent - then
* KPlayer::dataHandler or KGame::dataHandler will be used.
*
* Every KGamePropertyHandler must have - just like every KGameProperty -
@ -81,18 +81,18 @@ public:
* You have to call registerHandler before you can use this
* handler!
**/
KGamePropertyHandler(TQObject* tqparent = 0);
KGamePropertyHandler(TQObject* parent = 0);
/**
* Construct a registered handler.
*
* @see registerHandler
**/
KGamePropertyHandler(int id, const TQObject* receiver, const char* sendf, const char* emitf, TQObject* tqparent = 0);
KGamePropertyHandler(int id, const TQObject* receiver, const char* sendf, const char* emitf, TQObject* parent = 0);
~KGamePropertyHandler();
/**
* Register the handler with a tqparent. This is to use
* Register the handler with a parent. This is to use
* if the constructor without arguments has been chosen.
* Otherwise you need not call this.
*
@ -106,7 +106,7 @@ public:
/**
* Main message process function. This has to be called by
* the tqparent's message event handler. If the id of the message
* the parent's message event handler. If the id of the message
* agrees with the id of the handler, the message is extracted
* and processed. Otherwise false is returned.
* Example:
@ -170,7 +170,7 @@ public:
/**
* called by a property to send itself into the
* datastream. This call is simply forwarded to
* the tqparent object
* the parent object
**/
bool sendProperty(TQDataStream &s);
@ -179,7 +179,7 @@ public:
/**
* called by a property to emit a signal
* This call is simply forwarded to
* the tqparent object
* the parent object
**/
void emitSignal(KGamePropertyBase *data);
@ -316,7 +316,7 @@ signals:
/**
* This signal is emitted when a property needs to be sent. Only the
* tqparent has to react to this.
* parent has to react to this.
* @param msgid The id of the handler
* @param sent set this to true if the property was sent successfully -
* otherwise don't touch

@ -48,8 +48,8 @@ public:
TQValueList <TQByteArray> delayedMessages;
};
KMessageClient::KMessageClient (TQObject *tqparent, const char *name)
: TQObject (tqparent, name)
KMessageClient::KMessageClient (TQObject *parent, const char *name)
: TQObject (parent, name)
{
d = new KMessageClientPrivate ();
d->isLocked = false;

@ -59,7 +59,7 @@ public:
Creates an unconnected KMessageClient object. Use setServer() later to connect to a
KMessageServer object.
*/
KMessageClient (TQObject *tqparent = 0, const char *name = 0);
KMessageClient (TQObject *parent = 0, const char *name = 0);
/**
Destructor.

@ -29,8 +29,8 @@
// ----------------------- KMessageIO -------------------------
KMessageIO::KMessageIO (TQObject *tqparent, const char *name)
: TQObject (tqparent, name), m_id (0)
KMessageIO::KMessageIO (TQObject *parent, const char *name)
: TQObject (parent, name), m_id (0)
{}
KMessageIO::~KMessageIO ()
@ -48,9 +48,9 @@ TQ_UINT32 KMessageIO::id ()
// ----------------------KMessageSocket -----------------------
KMessageSocket::KMessageSocket (TQString host, TQ_UINT16 port, TQObject *tqparent,
KMessageSocket::KMessageSocket (TQString host, TQ_UINT16 port, TQObject *parent,
const char *name)
: KMessageIO (tqparent, name)
: KMessageIO (parent, name)
{
mSocket = new TQSocket ();
mSocket->connectToHost (host, port);
@ -58,25 +58,25 @@ const char *name)
}
KMessageSocket::KMessageSocket (TQHostAddress host, TQ_UINT16 port, TQObject
*tqparent, const char *name)
: KMessageIO (tqparent, name)
*parent, const char *name)
: KMessageIO (parent, name)
{
mSocket = new TQSocket ();
mSocket->connectToHost (host.toString(), port);
initSocket ();
}
KMessageSocket::KMessageSocket (TQSocket *socket, TQObject *tqparent, const char
KMessageSocket::KMessageSocket (TQSocket *socket, TQObject *parent, const char
*name)
: KMessageIO (tqparent, name)
: KMessageIO (parent, name)
{
mSocket = socket;
initSocket ();
}
KMessageSocket::KMessageSocket (int socketFD, TQObject *tqparent, const char
KMessageSocket::KMessageSocket (int socketFD, TQObject *parent, const char
*name)
: KMessageIO (tqparent, name)
: KMessageIO (parent, name)
{
mSocket = new TQSocket ();
mSocket->setSocket (socketFD);
@ -177,9 +177,9 @@ TQString KMessageSocket::peerName () const
// ----------------------KMessageDirect -----------------------
KMessageDirect::KMessageDirect (KMessageDirect *partner, TQObject *tqparent,
KMessageDirect::KMessageDirect (KMessageDirect *partner, TQObject *parent,
const char *name)
: KMessageIO (tqparent, name), mPartner (0)
: KMessageIO (parent, name), mPartner (0)
{
// 0 as first parameter leaves the object unconnected
if (!partner)
@ -238,7 +238,7 @@ KMessageProcess::~KMessageProcess()
// Maybe todo: delete mSendBuffer
}
}
KMessageProcess::KMessageProcess(TQObject *tqparent, TQString file) : KMessageIO(tqparent,0)
KMessageProcess::KMessageProcess(TQObject *parent, TQString file) : KMessageIO(parent,0)
{
// Start process
kdDebug(11001) << "@@@KMessageProcess::Start process" << endl;
@ -397,7 +397,7 @@ void KMessageProcess::slotProcessExited(KProcess * /*p*/)
// ----------------------- KMessageFilePipe ---------------------------
KMessageFilePipe::KMessageFilePipe(TQObject *tqparent,TQFile *readfile,TQFile *writefile) : KMessageIO(tqparent,0)
KMessageFilePipe::KMessageFilePipe(TQObject *parent,TQFile *readfile,TQFile *writefile) : KMessageIO(parent,0)
{
mReadFile=readfile;
mWriteFile=writefile;
@ -430,7 +430,7 @@ void KMessageFilePipe::send(const TQByteArray &msg)
mWriteFile->writeBlock(buffer);
mWriteFile->flush();
/*
fprintf(stderr,"+++ KMessageFilePipe:: SEND(%d to tqparent) realsize=%d\n",msg.size(),buffer.size());
fprintf(stderr,"+++ KMessageFilePipe:: SEND(%d to parent) realsize=%d\n",msg.size(),buffer.size());
for (int i=0;i<buffer.size();i++) fprintf(stderr,"%02x ",buffer[i]);fprintf(stderr,"\n");
fflush(stderr);
*/

@ -62,7 +62,7 @@ public:
/**
* The usual TQObject constructor, does nothing else.
**/
KMessageIO (TQObject *tqparent = 0, const char *name = 0);
KMessageIO (TQObject *parent = 0, const char *name = 0);
/**
* The usual destructor, does nothing special.
@ -183,7 +183,7 @@ public:
If the connection could not be established (e.g. unknown host or no server
socket at this port), the signal /e connectionBroken is emitted.
*/
KMessageSocket (TQString host, TQ_UINT16 port, TQObject *tqparent = 0,
KMessageSocket (TQString host, TQ_UINT16 port, TQObject *parent = 0,
const char *name = 0);
/**
@ -194,7 +194,7 @@ public:
If the connection could not be established (e.g. unknown host or no server
socket at this port), the signal /e connectionBroken is emitted.
*/
KMessageSocket (TQHostAddress host, TQ_UINT16 port, TQObject *tqparent = 0,
KMessageSocket (TQHostAddress host, TQ_UINT16 port, TQObject *parent = 0,
const char *name = 0);
/**
@ -205,10 +205,10 @@ public:
Note: The /e socket object is then owned by the /e KMessageSocket object.
So don't use it otherwise any more and don't delete it. It is deleted
together with this KMessageSocket object. (Use 0 as tqparent for the TQSocket
together with this KMessageSocket object. (Use 0 as parent for the TQSocket
object t ensure it is not deleted.)
*/
KMessageSocket (TQSocket *socket, TQObject *tqparent = 0, const char *name = 0);
KMessageSocket (TQSocket *socket, TQObject *parent = 0, const char *name = 0);
/**
Uses the socket specified by the socket descriptor socketFD to do the
@ -221,7 +221,7 @@ public:
manipulate the socket afterwards, especially don't close it. The socket is
automatically closed when KMessageSocket is deleted.
*/
KMessageSocket (int socketFD, TQObject *tqparent = 0, const char *name = 0);
KMessageSocket (int socketFD, TQObject *parent = 0, const char *name = 0);
/**
Destructor, closes the socket.
@ -307,7 +307,7 @@ public:
If that object is already connected, the object remains unconnected.
*/
KMessageDirect (KMessageDirect *partner = 0, TQObject *tqparent = 0, const char
KMessageDirect (KMessageDirect *partner = 0, TQObject *parent = 0, const char
*name = 0);
/**
@ -354,7 +354,7 @@ class KMessageProcess : public KMessageIO
TQ_OBJECT
public:
KMessageProcess(TQObject *tqparent, TQString file);
KMessageProcess(TQObject *parent, TQString file);
~KMessageProcess();
bool isConnected() const;
void send (const TQByteArray &msg);
@ -393,7 +393,7 @@ class KMessageFilePipe : public KMessageIO
TQ_OBJECT
public:
KMessageFilePipe(TQObject *tqparent,TQFile *readFile,TQFile *writeFile);
KMessageFilePipe(TQObject *parent,TQFile *readFile,TQFile *writeFile);
~KMessageFilePipe();
bool isConnected() const;
void send (const TQByteArray &msg);

@ -31,8 +31,8 @@
// --------------- internal class KMessageServerSocket
KMessageServerSocket::KMessageServerSocket (TQ_UINT16 port, TQObject *tqparent)
: TQServerSocket (port, 0, tqparent)
KMessageServerSocket::KMessageServerSocket (TQ_UINT16 port, TQObject *parent)
: TQServerSocket (port, 0, parent)
{
}
@ -86,8 +86,8 @@ public:
// ------------------ KMessageServer
KMessageServer::KMessageServer (TQ_UINT16 cookie,TQObject* tqparent)
: TQObject(tqparent, 0)
KMessageServer::KMessageServer (TQ_UINT16 cookie,TQObject* parent)
: TQObject(parent, 0)
{
d = new KMessageServerPrivate;
d->mIsRecursive=false;

@ -209,7 +209,7 @@ public:
/**
* Create a KGameNetwork object
**/
KMessageServer(TQ_UINT16 cookie = 42, TQObject* tqparent = 0);
KMessageServer(TQ_UINT16 cookie = 42, TQObject* parent = 0);
~KMessageServer();
@ -480,7 +480,7 @@ class KMessageServerSocket : public TQServerSocket
TQ_OBJECT
public:
KMessageServerSocket (TQ_UINT16 port, TQObject *tqparent = 0);
KMessageServerSocket (TQ_UINT16 port, TQObject *parent = 0);
~KMessageServerSocket ();
void newConnection (int socket);

@ -28,8 +28,8 @@
//-----------------------------------------------------------------------------
KGameLCD::KGameLCD(uint nbDigits, TQWidget *tqparent, const char *name)
: TQLCDNumber(nbDigits, tqparent, name), _htime(800)
KGameLCD::KGameLCD(uint nbDigits, TQWidget *parent, const char *name)
: TQLCDNumber(nbDigits, parent, name), _htime(800)
{
const TQPalette &p = palette();
_fgColor = p.color(TQPalette::Active, TQColorGroup::Foreground);
@ -110,8 +110,8 @@ void KGameLCD::highlight(bool light)
}
//-----------------------------------------------------------------------------
KGameLCDClock::KGameLCDClock(TQWidget *tqparent, const char *name)
: KGameLCD(5, tqparent, name)
KGameLCDClock::KGameLCDClock(TQWidget *parent, const char *name)
: KGameLCD(5, parent, name)
{
_timerClock = new TQTimer(this);
connect(_timerClock, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutClock()));
@ -191,15 +191,15 @@ public:
TQValueVector<TQLabel *> _leadings;
};
KGameLCDList::KGameLCDList(const TQString &title, TQWidget *tqparent,
KGameLCDList::KGameLCDList(const TQString &title, TQWidget *parent,
const char *name)
: TQWidget(tqparent, name)
: TQWidget(parent, name)
{
init(title);
}
KGameLCDList::KGameLCDList(TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name)
KGameLCDList::KGameLCDList(TQWidget *parent, const char *name)
: TQWidget(parent, name)
{
init(TQString());
}

@ -44,7 +44,7 @@ class KDE_EXPORT KGameLCD : public TQLCDNumber
Q_OBJECT
TQ_OBJECT
public:
KGameLCD(uint nbDigits, TQWidget *tqparent = 0, const char *name = 0);
KGameLCD(uint nbDigits, TQWidget *parent = 0, const char *name = 0);
~KGameLCD();
@ -129,7 +129,7 @@ class KDE_EXPORT KGameLCDClock : public KGameLCD
Q_OBJECT
TQ_OBJECT
public:
KGameLCDClock(TQWidget *tqparent = 0, const char *name = 0);
KGameLCDClock(TQWidget *parent = 0, const char *name = 0);
~KGameLCDClock();
@ -198,24 +198,24 @@ public:
* Constructor.
*
* @param title is the content of the top label.
* @param tqparent passed to the TQWidget constructor
* @param parent passed to the TQWidget constructor
* @param name passed to the TQWidget constructor
*/
KGameLCDList(const TQString &title,
TQWidget *tqparent = 0, const char *name = 0);
KGameLCDList(TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
KGameLCDList(TQWidget *parent = 0, const char *name = 0);
~KGameLCDList();
/**
* Append a TQLCDNumber at the bottom of the list.
* The TQLCDNumber should have the KGameLCDList as tqparent.
* The TQLCDNumber should have the KGameLCDList as parent.
*/
void append(TQLCDNumber *lcd);
/**
* Append a TQLCDNumber at the bottom of the list.
* The TQLCDNumber should have the KGameLCDList as tqparent.
* The TQLCDNumber should have the KGameLCDList as parent.
*/
void append(const TQString &leading, TQLCDNumber *lcd);

@ -29,16 +29,16 @@
#include <kapplication.h>
KGameProgress::KGameProgress(TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name),
KGameProgress::KGameProgress(TQWidget *parent, const char *name)
: TQFrame(parent, name),
TQRangeControl(0, 100, 1, 10, 0),
orient(Qt::Horizontal)
{
initialize();
}
KGameProgress::KGameProgress(Qt::Orientation orientation, TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name),
KGameProgress::KGameProgress(Qt::Orientation orientation, TQWidget *parent, const char *name)
: TQFrame(parent, name),
TQRangeControl(0, 100, 1, 10, 0),
orient(orientation)
{
@ -46,8 +46,8 @@ KGameProgress::KGameProgress(Qt::Orientation orientation, TQWidget *tqparent, co
}
KGameProgress::KGameProgress(int minValue, int maxValue, int value,
Qt::Orientation orientation, TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name),
Qt::Orientation orientation, TQWidget *parent, const char *name)
: TQFrame(parent, name),
TQRangeControl(minValue, maxValue, 1, 10, value),
orient(orientation)
{

@ -71,18 +71,18 @@ public:
/**
* Construct a horizontal progress bar.
*/
KGameProgress(TQWidget *tqparent=0, const char *name=0);
KGameProgress(TQWidget *parent=0, const char *name=0);
/**
* Construct a progress bar with orientation @p orient.
*/
KGameProgress(Qt::Orientation orient, TQWidget *tqparent=0, const char *name=0);
KGameProgress(Qt::Orientation orient, TQWidget *parent=0, const char *name=0);
/**
* Construct a progress bar with minimum, maximum and initial values.
*/
KGameProgress(int minValue, int maxValue, int value, Qt::Orientation,
TQWidget *tqparent=0, const char *name=0);
TQWidget *parent=0, const char *name=0);
/**
* Destruct the progress bar.

@ -33,10 +33,10 @@ KStdGameAction::~KStdGameAction()
{}
KAction *KStdGameAction::action(StdGameAction act_enum, const TQObject *recvr,
const char *slot, KActionCollection *tqparent,
const char *slot, KActionCollection *parent,
const char *name)
{
return create( act_enum, name, recvr, slot, tqparent );
return create( act_enum, name, recvr, slot, parent );
}
const char* KStdGameAction::stdName(StdGameAction act_enum)
@ -97,11 +97,11 @@ static const KStdGameActionInfo* infoPtr( KStdGameAction::StdGameAction id )
KAction* KStdGameAction::create(StdGameAction id, const char *name,
const TQObject *recvr, const char *slot,
KActionCollection* tqparent )
KActionCollection* parent )
{
KAction* pAction = 0;
const KStdGameActionInfo* pInfo = infoPtr( id );
kdDebug(125) << "KStdGameAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << ", " << tqparent << ", " << name << " )" << endl;
kdDebug(125) << "KStdGameAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << ", " << parent << ", " << name << " )" << endl;
if( pInfo ) {
TQString sLabel = i18n(pInfo->psLabel);
KShortcut cut = (pInfo->globalAccel==KStdAccel::AccelNone
@ -111,20 +111,20 @@ KAction* KStdGameAction::create(StdGameAction id, const char *name,
switch( id ) {
case LoadRecent:
pAction =
new KRecentFilesAction(sLabel, cut, recvr, slot, tqparent, n);
new KRecentFilesAction(sLabel, cut, recvr, slot, parent, n);
break;
case Pause:
case Demo:
pAction = new KToggleAction( sLabel, pInfo->psIconName, cut,
recvr, slot, tqparent, n);
recvr, slot, parent, n);
break;
case ChooseGameType:
pAction = new KSelectAction( sLabel, pInfo->psIconName, cut,
recvr, slot, tqparent, n);
recvr, slot, parent, n);
break;
default:
pAction = new KAction( sLabel, pInfo->psIconName, cut,
recvr, slot, tqparent, n);
recvr, slot, parent, n);
break;
}
}
@ -138,72 +138,72 @@ const char* KStdGameAction::name( StdGameAction id )
}
KAction *KStdGameAction::gameNew(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(New, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(New, name, recvr, slot, parent); }
KAction *KStdGameAction::load(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Load, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Load, name, recvr, slot, parent); }
KRecentFilesAction *KStdGameAction::loadRecent(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return static_cast<KRecentFilesAction *>(KStdGameAction::create(LoadRecent, name, recvr, slot, tqparent)); }
KActionCollection *parent, const char *name )
{ return static_cast<KRecentFilesAction *>(KStdGameAction::create(LoadRecent, name, recvr, slot, parent)); }
KAction *KStdGameAction::save(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Save, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Save, name, recvr, slot, parent); }
KAction *KStdGameAction::saveAs(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(SaveAs, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(SaveAs, name, recvr, slot, parent); }
KAction *KStdGameAction::end(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(End, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(End, name, recvr, slot, parent); }
KToggleAction *KStdGameAction::pause(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return static_cast<KToggleAction *>(KStdGameAction::create(Pause, name, recvr, slot, tqparent)); }
KActionCollection *parent, const char *name )
{ return static_cast<KToggleAction *>(KStdGameAction::create(Pause, name, recvr, slot, parent)); }
KAction *KStdGameAction::highscores(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Highscores, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Highscores, name, recvr, slot, parent); }
KAction *KStdGameAction::print(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Print, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Print, name, recvr, slot, parent); }
KAction *KStdGameAction::quit(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Quit, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Quit, name, recvr, slot, parent); }
KAction *KStdGameAction::repeat(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Repeat, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Repeat, name, recvr, slot, parent); }
KAction *KStdGameAction::undo(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Undo, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Undo, name, recvr, slot, parent); }
KAction *KStdGameAction::redo(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Redo, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Redo, name, recvr, slot, parent); }
KAction *KStdGameAction::roll(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Roll, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Roll, name, recvr, slot, parent); }
KAction *KStdGameAction::endTurn(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(EndTurn, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(EndTurn, name, recvr, slot, parent); }
KAction *KStdGameAction::carddecks(const TQObject *recvr, const char *slot,
KActionCollection *tqparent, const char *name )
{ return KStdGameAction::create(Carddecks, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name )
{ return KStdGameAction::create(Carddecks, name, recvr, slot, parent); }
KAction *KStdGameAction::configureHighscores(const TQObject*recvr, const char *slot,
KActionCollection *tqparent, const char *name)
{ return KStdGameAction::create(ConfigureHighscores, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name)
{ return KStdGameAction::create(ConfigureHighscores, name, recvr, slot, parent); }
KAction *KStdGameAction::hint(const TQObject*recvr, const char *slot,
KActionCollection *tqparent, const char *name)
{ return KStdGameAction::create(Hint, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name)
{ return KStdGameAction::create(Hint, name, recvr, slot, parent); }
KToggleAction *KStdGameAction::demo(const TQObject*recvr, const char *slot,
KActionCollection *tqparent, const char *name)
{ return static_cast<KToggleAction *>(KStdGameAction::create(Demo, name, recvr, slot, tqparent)); }
KActionCollection *parent, const char *name)
{ return static_cast<KToggleAction *>(KStdGameAction::create(Demo, name, recvr, slot, parent)); }
KAction *KStdGameAction::solve(const TQObject*recvr, const char *slot,
KActionCollection *tqparent, const char *name)
{ return KStdGameAction::create(Solve, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name)
{ return KStdGameAction::create(Solve, name, recvr, slot, parent); }
KSelectAction *KStdGameAction::chooseGameType(const TQObject*recvr, const char *slot,
KActionCollection *tqparent, const char *name)
{ return static_cast<KSelectAction *>(KStdGameAction::create(ChooseGameType, name, recvr, slot, tqparent)); }
KActionCollection *parent, const char *name)
{ return static_cast<KSelectAction *>(KStdGameAction::create(ChooseGameType, name, recvr, slot, parent)); }
KAction *KStdGameAction::restart(const TQObject*recvr, const char *slot,
KActionCollection *tqparent, const char *name)
{ return KStdGameAction::create(Restart, name, recvr, slot, tqparent); }
KActionCollection *parent, const char *name)
{ return KStdGameAction::create(Restart, name, recvr, slot, parent); }

@ -79,15 +79,15 @@ public:
*/
static KAction* create( StdGameAction id, const char *name,
const TQObject *recvr, const char *slot,
KActionCollection* tqparent );
KActionCollection* parent );
/**
* @since 3.2
*/
static KAction* create( StdGameAction id,
const TQObject *recvr, const char *slot,
KActionCollection* tqparent )
{ return create( id, 0, recvr, slot, tqparent ); }
KActionCollection* parent )
{ return create( id, 0, recvr, slot, parent ); }
/**
@ -96,7 +96,7 @@ public:
* @deprecated
*/
static KAction *action(StdGameAction act_enum, const TQObject *recvr = 0,
const char *slot = 0, KActionCollection *tqparent = 0,
const char *slot = 0, KActionCollection *parent = 0,
const char *name = 0L );
/**
@ -115,43 +115,43 @@ public:
* Start a new game
**/
static KAction *gameNew(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Load a previousely saved game
*/
static KAction *load(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Load a recently loaded game.
*/
static KRecentFilesAction *loadRecent(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Save the current game.
*/
static KAction *save(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Save the current game under a different filename.
*/
static KAction *saveAs(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Pause the game
**/
static KToggleAction *pause(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Show the highscores.
*/
static KAction *highscores(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
@ -159,20 +159,20 @@ public:
* entry.
*/
static KAction *end(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Print the current screen? Game? Whatever - hardly used in games but there
* is at least one example (ktuberling)
*/
static KAction *print(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Quit the game.
*/
static KAction *quit(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
@ -180,81 +180,81 @@ public:
* Repeat the last move.
**/
static KAction *repeat(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Undo the last move
**/
static KAction *undo(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Redo the last move (which has been undone)
**/
static KAction *redo(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Roll die or dice
**/
static KAction *roll(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* End the current turn (not the game). Usually to let the next player
* start
**/
static KAction *endTurn(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Display configure carddecks dialog.
*/
static KAction *carddecks(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Display configure highscores dialog.
* @since 3.2
*/
static KAction *configureHighscores(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Give an advice/hint.
* @since 3.2
*/
static KAction *hint(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Show a demo.
* @since 3.2
*/
static KToggleAction *demo(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Solve the game.
* @since 3.2
*/
static KAction *solve(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Choose game type.
* @since 3.2
*/
static KSelectAction *chooseGameType(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
/**
* Restart game.
* @since 3.2
*/
static KAction *restart(const TQObject *recvr = 0, const char *slot = 0,
KActionCollection *tqparent = 0, const char *name = 0L );
KActionCollection *parent = 0, const char *name = 0L );
};

@ -12,8 +12,8 @@
using namespace KGrid2D;
//-----------------------------------------------------------------------------
FixedCanvasView::FixedCanvasView(TQWidget *tqparent, const char *name)
: TQCanvasView(tqparent, name, WNoAutoErase)
FixedCanvasView::FixedCanvasView(TQWidget *parent, const char *name)
: TQCanvasView(parent, name, WNoAutoErase)
{}
TQSize FixedCanvasView::tqsizeHint() const
@ -35,8 +35,8 @@ const BaseBoard::DirectionData BaseBoard::DIRECTION_DATA[Nb_Direction] = {
{ SquareBase::Up, Down }
};
BaseBoard::BaseBoard(bool graphic, TQWidget *tqparent)
: FixedCanvasView(tqparent, "board"),
BaseBoard::BaseBoard(bool graphic, TQWidget *parent)
: FixedCanvasView(parent, "board"),
GenericTetris(bfactory->bbi.width, bfactory->bbi.height,
bfactory->bbi.withPieces, graphic),
state(GameOver), timer(this), sequences(0), main(0), _next(0),

@ -17,7 +17,7 @@ class KDE_EXPORT FixedCanvasView : public TQCanvasView
Q_OBJECT
TQ_OBJECT
public:
FixedCanvasView(TQWidget *tqparent = 0, const char *name = 0);
FixedCanvasView(TQWidget *parent = 0, const char *name = 0);
virtual TQSize tqsizeHint() const;
@ -40,7 +40,7 @@ class KDE_EXPORT BaseBoard : public FixedCanvasView, public GenericTetris
static const DirectionData DIRECTION_DATA[Nb_Direction];
public:
BaseBoard(bool graphic, TQWidget *tqparent);
BaseBoard(bool graphic, TQWidget *parent);
virtual ~BaseBoard();
void copy(const GenericTetris &);

@ -43,8 +43,8 @@ class KDE_EXPORT BaseFactory
const MainData &mainData;
const BaseBoardInfo &bbi;
virtual BaseBoard *createBoard(bool graphic, TQWidget *tqparent) = 0;
virtual BaseInterface *createInterface(TQWidget *tqparent) = 0;
virtual BaseBoard *createBoard(bool graphic, TQWidget *parent) = 0;
virtual BaseInterface *createInterface(TQWidget *parent) = 0;
virtual TQWidget *createAppearanceConfig();
virtual TQWidget *createColorConfig();

@ -93,7 +93,7 @@ void BaseField::setMessage(const TQString &label, ButtonType type)
const char *slot = (type==ResumeButton ? TQT_SLOT(pause())
: TQT_SLOT(start()));
_button->connect(_button, TQT_SIGNAL(clicked()),
_widget->tqparent(), slot);
_widget->parent(), slot);
_boardLayout->addWidget(_button, 0, TQt::AlignCenter);
_button->show();
}
@ -135,10 +135,10 @@ void BaseField::stop(bool gameover)
setMessage(msg, button);
}
void BaseField::gameOver(const KExtHighscore::Score &score, TQWidget *tqparent)
void BaseField::gameOver(const KExtHighscore::Score &score, TQWidget *parent)
{
KNotifyClient::event(tqparent->winId(), "game over", i18n("Game Over"));
KExtHighscore::submitScore(score, tqparent);
KNotifyClient::event(parent->winId(), "game over", i18n("Game Over"));
KExtHighscore::submitScore(score, parent);
}
void BaseField::scoreUpdated()

@ -22,7 +22,7 @@ class KDE_EXPORT BaseField
virtual ~BaseField() {}
virtual KExtHighscore::Score currentScore() const = 0;
static void gameOver(const KExtHighscore::Score &, TQWidget *tqparent);
static void gameOver(const KExtHighscore::Score &, TQWidget *parent);
virtual void setArcade();
bool isArcade() const;

@ -3,13 +3,13 @@
#include <kexthighscore.h>
void BaseInterface::showHighscores(TQWidget *tqparent)
void BaseInterface::showHighscores(TQWidget *parent)
{
if ( !_isPaused() ) _pause();
_showHighscores(tqparent);
_showHighscores(parent);
}
void BaseInterface::_showHighscores(TQWidget *tqparent)
void BaseInterface::_showHighscores(TQWidget *parent)
{
KExtHighscore::show(tqparent);
KExtHighscore::show(parent);
}

@ -14,10 +14,10 @@ public:
virtual void _pause() = 0;
virtual bool _isPaused() const = 0;
void showHighscores(TQWidget *tqparent);
void showHighscores(TQWidget *parent);
protected:
virtual void _showHighscores(TQWidget *tqparent);
virtual void _showHighscores(TQWidget *parent);
};
#endif

@ -11,8 +11,8 @@
#include "commonprefs.h"
Board::Board(bool graphic, GiftPool *gp, TQWidget *tqparent)
: BaseBoard(graphic, tqparent),
Board::Board(bool graphic, GiftPool *gp, TQWidget *parent)
: BaseBoard(graphic, parent),
_giftPool(gp), aiEngine(0)
{}

@ -13,7 +13,7 @@ class LIBKSIRTET_EXPORT Board : public BaseBoard
Q_OBJECT
TQ_OBJECT
public:
Board(bool graphic, GiftPool *, TQWidget *tqparent);
Board(bool graphic, GiftPool *, TQWidget *parent);
virtual ~Board();
void setType(bool computer);

@ -25,7 +25,7 @@ class LIBKSIRTET_EXPORT CommonFactory : public BaseFactory
const CommonBoardInfo &cbi;
virtual BaseField *createField(TQWidget *tqparent) = 0;
virtual BaseField *createField(TQWidget *parent) = 0;
virtual AI *createAI() = 0;
TQWidget *createAIConfig();

@ -19,8 +19,8 @@
#include "commonprefs.h"
Field::Field(TQWidget *tqparent)
: MPSimpleBoard(tqparent), BaseField(this)
Field::Field(TQWidget *parent)
: MPSimpleBoard(parent), BaseField(this)
{
// column 1
// score LCD

@ -20,7 +20,7 @@ class LIBKSIRTET_EXPORT Field : public MPSimpleBoard, public BaseField
Q_OBJECT
TQ_OBJECT
public:
Field(TQWidget *tqparent);
Field(TQWidget *parent);
public slots:
void moveLeft();

@ -33,8 +33,8 @@ const int Interface::KEYCODE_TWO[Nb_Actions] = {
Key_F, Key_G, Key_D, Key_Space, Key_E, Key_C, SHIFT+Key_F, SHIFT+Key_G
};
Interface::Interface(const MPGameInfo &gi, TQWidget *tqparent)
: MPSimpleInterface(gi, Nb_Actions, ACTION_DATA, tqparent)
Interface::Interface(const MPGameInfo &gi, TQWidget *parent)
: MPSimpleInterface(gi, Nb_Actions, ACTION_DATA, parent)
{
setDefaultKeycodes(1, 0, KEYCODE_ONE);
setDefaultKeycodes(2, 0, KEYCODE_TWO);
@ -91,10 +91,10 @@ void Interface::_sendPlayData()
}
}
void Interface::_showHighscores(TQWidget *tqparent)
void Interface::_showHighscores(TQWidget *parent)
{
if ( !server() || nbPlayers()!=1 ) _scores.show(tqparent);
else BaseInterface::_showHighscores(tqparent);
if ( !server() || nbPlayers()!=1 ) _scores.show(parent);
else BaseInterface::_showHighscores(parent);
}
void Interface::_showGameOverData()

@ -17,7 +17,7 @@ class LIBKSIRTET_EXPORT Interface : public MPSimpleInterface, public BaseInterfa
Q_OBJECT
TQ_OBJECT
public:
Interface(const MPGameInfo &, TQWidget *tqparent);
Interface(const MPGameInfo &, TQWidget *parent);
signals:
void settingsChanged();
@ -28,7 +28,7 @@ public slots:
void settingsChangedSlot() { emit settingsChanged(); }
protected:
void _showHighscores(TQWidget *tqparent);
void _showHighscores(TQWidget *parent);
private:
TQMemArray<ClientPlayData> _data;

@ -24,8 +24,8 @@ const uint LED_HEIGHT = 15;
const uint LED_SPACING = 5;
/*****************************************************************************/
ShowNextPiece::ShowNextPiece(BaseBoard *board, TQWidget *tqparent)
: FixedCanvasView(tqparent, "show_next_piece")
ShowNextPiece::ShowNextPiece(BaseBoard *board, TQWidget *parent)
: FixedCanvasView(parent, "show_next_piece")
{
setCanvas(board->next());
setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
@ -33,8 +33,8 @@ ShowNextPiece::ShowNextPiece(BaseBoard *board, TQWidget *tqparent)
}
/*****************************************************************************/
Shadow::Shadow(BaseBoard *board, TQWidget *tqparent)
: TQWidget(tqparent, "shadow"), _xOffset(board->frameWidth()),
Shadow::Shadow(BaseBoard *board, TQWidget *parent)
: TQWidget(parent, "shadow"), _xOffset(board->frameWidth()),
_board(board), _show(false)
{
KZoomMainWindow::addWidget(this);
@ -81,8 +81,8 @@ void Shadow::paintEvent(TQPaintEvent *)
class Led : public TQWidget
{
public:
Led(const TQColor &c, TQWidget *tqparent)
: TQWidget(tqparent), col(c), _on(FALSE) {}
Led(const TQColor &c, TQWidget *parent)
: TQWidget(parent), col(c), _on(FALSE) {}
TQSizePolicy sizePolicy() const
{ return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); }
@ -105,8 +105,8 @@ class Led : public TQWidget
bool _on;
};
GiftPool::GiftPool(TQWidget *tqparent)
: TQHBox(tqparent, "gift_pool"), nb(0), ready(false)
GiftPool::GiftPool(TQWidget *parent)
: TQHBox(parent, "gift_pool"), nb(0), ready(false)
{
setSpacing(LED_SPACING);
leds.resize(cfactory->cbi.nbGiftLeds);
@ -171,10 +171,10 @@ void GiftPool::reset()
}
//-----------------------------------------------------------------------------
PlayerProgress::PlayerProgress(BaseBoard *board, TQWidget *tqparent,
PlayerProgress::PlayerProgress(BaseBoard *board, TQWidget *parent,
const char *name)
: KGameProgress(0, board->matrix().height(), 0, Qt::Vertical,
tqparent, name), _board(board)
parent, name), _board(board)
{
setBackgroundColor(lightGray);
setTextEnabled(false);

@ -16,7 +16,7 @@ class LIBKSIRTET_EXPORT ShowNextPiece : public FixedCanvasView
Q_OBJECT
TQ_OBJECT
public:
ShowNextPiece(BaseBoard *, TQWidget *tqparent);
ShowNextPiece(BaseBoard *, TQWidget *parent);
};
/*****************************************************************************/
@ -25,7 +25,7 @@ class LIBKSIRTET_EXPORT Shadow : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
Shadow(BaseBoard *, TQWidget *tqparent);
Shadow(BaseBoard *, TQWidget *parent);
virtual TQSize tqsizeHint() const;
virtual TQSizePolicy sizePolicy() const;
@ -47,7 +47,7 @@ class LIBKSIRTET_EXPORT GiftPool : public TQHBox
Q_OBJECT
TQ_OBJECT
public:
GiftPool(TQWidget *tqparent);
GiftPool(TQWidget *parent);
virtual TQSize tqsizeHint() const;
virtual TQSizePolicy sizePolicy() const;
@ -73,7 +73,7 @@ class LIBKSIRTET_EXPORT PlayerProgress : public KGameProgress
Q_OBJECT
TQ_OBJECT
public:
PlayerProgress(BaseBoard *board, TQWidget *tqparent = 0, const char *name = 0);
PlayerProgress(BaseBoard *board, TQWidget *parent = 0, const char *name = 0);
virtual TQSize tqsizeHint() const;
virtual TQSizePolicy sizePolicy() const;

@ -2,12 +2,12 @@
#include <klocale.h>
void errorBox(const TQString &msg1, const TQString &msg2, TQWidget *tqparent)
void errorBox(const TQString &msg1, const TQString &msg2, TQWidget *parent)
{
TQString str;
if ( msg2.isNull() ) str = msg1;
else str = i18n("%1:\n%2").tqarg(msg1).tqarg(msg2);
KMessageBox::error(tqparent, str);
KMessageBox::error(parent, str);
}
TQString socketError(const KExtendedSocket *socket)
@ -16,9 +16,9 @@ TQString socketError(const KExtendedSocket *socket)
}
bool checkSocket(int res, const KExtendedSocket *socket,
const TQString &msg, TQWidget *tqparent)
const TQString &msg, TQWidget *parent)
{
if ( res==0 ) return false;
errorBox(msg, socketError(socket), tqparent);
errorBox(msg, socketError(socket), parent);
return true;
}

@ -16,10 +16,10 @@
#define MP_SERVER_ADDRESS "Server address"
#define MP_PORT "Port"
void errorBox(const TQString &msg1, const TQString &msg2, TQWidget *tqparent);
void errorBox(const TQString &msg1, const TQString &msg2, TQWidget *parent);
TQString socketError(const KExtendedSocket *socket);
bool checkSocket(int res, const KExtendedSocket *,
const TQString &msg, TQWidget *tqparent);
const TQString &msg, TQWidget *parent);
#define R_ERROR_BOX(msg1, msg2) { \
errorBox(msg1, msg2, this); \

@ -7,8 +7,8 @@
KeyData::KeyData(uint maxNb, uint nbActions, const ActionData *data,
TQObject *tqparent)
: TQObject(tqparent), _maxNb(maxNb)
TQObject *parent)
: TQObject(parent), _maxNb(maxNb)
{
_data.duplicate(data, nbActions);

@ -13,7 +13,7 @@ class KeyData : public TQObject
TQ_OBJECT
public:
KeyData(uint maxNb, uint nbActions, const ActionData *,
TQObject *tqparent);
TQObject *parent);
void setKeycodes(uint nb, uint i, const int *keycodes);
void setCurrentNb(uint nb);

@ -14,10 +14,10 @@
NetMeeting::NetMeeting(const cId &_id, Socket *socket,
MPOptionWidget *option,
bool _server, TQWidget *tqparent, const char * name)
bool _server, TQWidget *parent, const char * name)
: KDialogBase(Plain, i18n("Network Meeting"),
(_server ? Ok|Cancel|Help : Cancel|Help),
(_server ? Ok : Cancel), tqparent, name),
(_server ? Ok : Cancel), parent, name),
server(_server), ow(option), id(_id), socketRemoved(FALSE)
{
sm.append(socket, SocketManager::ReadWrite);
@ -213,8 +213,8 @@ void NetMeeting::message(const TQString &str)
/** ServerNetMeeting *********************************************************/
ServerNetMeeting::ServerNetMeeting(const cId &id,
const RemoteHostData &r, MPOptionWidget *option,
TQPtrList<RemoteHostData> &arhd, TQWidget *tqparent, const char * name)
: NetMeeting(id, r.socket, option, TRUE, tqparent, name), rhd(arhd)
TQPtrList<RemoteHostData> &arhd, TQWidget *parent, const char * name)
: NetMeeting(id, r.socket, option, TRUE, parent, name), rhd(arhd)
{
connect(sm[0]->notifier(), TQT_SIGNAL(activated(int)), TQT_SLOT(newHost(int)));
players.append(Accepted); // server
@ -448,8 +448,8 @@ void ServerNetMeeting::optionsChanged()
/** ClientNetMeeting *********************************************************/
ClientNetMeeting::ClientNetMeeting(const cId &id,
const RemoteHostData &rhd, MPOptionWidget *option,
TQWidget *tqparent, const char * name)
: NetMeeting(id, rhd.socket, option, FALSE, tqparent, name), bds(rhd.bds)
TQWidget *parent, const char * name)
: NetMeeting(id, rhd.socket, option, FALSE, parent, name), bds(rhd.bds)
{
connect(sm[0]->notifier(), TQT_SIGNAL(activated(int)),
TQT_SLOT(readNotifier(int)));

@ -19,7 +19,7 @@ class NetMeeting : public KDialogBase
// "gameName" and "gameId" are TQByteArray because they are
// used for ID comparing between games.
NetMeeting(const cId &id, Socket *, MPOptionWidget *option, bool server,
TQWidget *tqparent = 0, const char * name = 0);
TQWidget *parent = 0, const char * name = 0);
virtual ~NetMeeting();
protected slots:
@ -84,7 +84,7 @@ class ServerNetMeeting : public NetMeeting
ServerNetMeeting(const cId &id,
const RemoteHostData &rhd, MPOptionWidget *options,
TQPtrList<RemoteHostData> &arhd,
TQWidget *tqparent = 0, const char * name = 0);
TQWidget *parent = 0, const char * name = 0);
private slots:
void newHost(int);
@ -115,7 +115,7 @@ class ClientNetMeeting : public NetMeeting
public:
ClientNetMeeting(const cId &id,
const RemoteHostData &rhd, MPOptionWidget *options,
TQWidget *tqparent = 0, const char * name = 0);
TQWidget *parent = 0, const char * name = 0);
private slots:
void textChanged(const TQString &text);

@ -8,8 +8,8 @@
//-----------------------------------------------------------------------------
MeetingCheckBox::MeetingCheckBox(Type type, bool owner, bool server,
TQWidget *tqparent)
: TQWidget(tqparent, "meeting_check_box")
TQWidget *parent)
: TQWidget(parent, "meeting_check_box")
{
TQVBoxLayout *vbox = new TQVBoxLayout(this);
@ -46,8 +46,8 @@ void MeetingCheckBox::changedSlot()
//-----------------------------------------------------------------------------
PlayerComboBox::PlayerComboBox(Type type, bool canBeEmpty, bool acceptAI,
TQWidget *tqparent)
: TQComboBox(tqparent, "player_combo_box")
TQWidget *parent)
: TQComboBox(parent, "player_combo_box")
{
insertItem(i18n("Human"));
if (acceptAI) insertItem(i18n("AI"));

@ -12,7 +12,7 @@ class MeetingCheckBox : public TQWidget
TQ_OBJECT
public:
enum Type { Ready, NotReady, Excluded };
MeetingCheckBox(Type, bool owner, bool server, TQWidget *tqparent);
MeetingCheckBox(Type, bool owner, bool server, TQWidget *parent);
void setType(Type);
Type type() const;
@ -34,7 +34,7 @@ class PlayerComboBox : public TQComboBox
TQ_OBJECT
public:
enum Type { Human = 0, AI, None };
PlayerComboBox(Type, bool canBeNone, bool acceptAI, TQWidget *tqparent);
PlayerComboBox(Type, bool canBeNone, bool acceptAI, TQWidget *parent);
Type type() const { return (Type)currentItem(); }

@ -13,8 +13,8 @@ class MPBoard : public TQWidget
TQ_OBJECT
public:
MPBoard(TQWidget *tqparent, const char *name=0)
: TQWidget(tqparent, name) {}
MPBoard(TQWidget *parent, const char *name=0)
: TQWidget(parent, name) {}
virtual ~MPBoard() {}
/**

@ -21,8 +21,8 @@
/*****************************************************************************/
MPInterface::MPInterface(const MPGameInfo &_gameInfo,
uint nbActions, const ActionData *data,
TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name), internal(0), gameInfo(_gameInfo), nbLocalHumans(0)
TQWidget *parent, const char *name)
: TQWidget(parent, name), internal(0), gameInfo(_gameInfo), nbLocalHumans(0)
{
Q_ASSERT( gameInfo.maxNbLocalPlayers>=1 );

@ -83,7 +83,7 @@ class MPInterface : public TQWidget
*/
MPInterface(const MPGameInfo &gameInfo,
uint nbActions, const ActionData *data,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
virtual ~MPInterface();
public slots:

@ -38,8 +38,8 @@ class MPOptionWidget : public TQWidget
TQ_OBJECT
public:
MPOptionWidget(bool Server, TQWidget *tqparent = 0, const char *name = 0)
: TQWidget(tqparent, name), server(Server) {}
MPOptionWidget(bool Server, TQWidget *parent = 0, const char *name = 0)
: TQWidget(parent, name), server(Server) {}
virtual ~MPOptionWidget() {}
bool isServer() const { return server; }

@ -12,8 +12,8 @@ class KDE_EXPORT MPSimpleBoard : public MPBoard
TQ_OBJECT
public:
MPSimpleBoard(TQWidget *tqparent = 0, const char *name = 0)
: MPBoard(tqparent, name) {}
MPSimpleBoard(TQWidget *parent = 0, const char *name = 0)
: MPBoard(parent, name) {}
virtual ~MPSimpleBoard() {}
void init(bool AI, bool multiplayers, bool server, bool first,

@ -13,8 +13,8 @@
MPSimpleInterface::MPSimpleInterface(const MPGameInfo &gi,
uint nbActions, const ActionData *data,
TQWidget *tqparent, const char *name)
: MPInterface(gi, nbActions, data, tqparent, name), state(SS_Standby)
TQWidget *parent, const char *name)
: MPInterface(gi, nbActions, data, parent, name), state(SS_Standby)
{}
void MPSimpleInterface::init()

@ -12,7 +12,7 @@ class MPSimpleInterface : public MPInterface
public:
MPSimpleInterface(const MPGameInfo &gi,
uint nbActions, const ActionData *data,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
bool isPaused() const { return state==SS_Pause; }

@ -9,8 +9,8 @@
#define THIN_BORDER 4
MeetingLine::MeetingLine(bool isOwner, bool serverIsReader, bool serverLine,
TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name)
TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
setFrameStyle(Panel | (serverLine ? Raised : Plain));
@ -84,8 +84,8 @@ void MeetingLine::data(ExtData &ed) const
PlayerLine::PlayerLine(PlayerComboBox::Type type, const TQString &txt,
bool humanSetting, bool AISetting,
bool canBeEmpty, bool acceptAI,
TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name), hs(humanSetting), as(AISetting)
TQWidget *parent, const char *name)
: TQFrame(parent, name), hs(humanSetting), as(AISetting)
{
setFrameStyle(Panel | Raised);
@ -128,8 +128,8 @@ void PlayerLine::setSlot()
}
/*****************************************************************************/
GWidgetList::GWidgetList(uint interval, TQWidget *tqparent, const char * name)
: TQWidget(tqparent, name), vbl(this, interval)
GWidgetList::GWidgetList(uint interval, TQWidget *parent, const char * name)
: TQWidget(parent, name), vbl(this, interval)
{
widgets.setAutoDelete(TRUE);
}

@ -20,7 +20,7 @@ class MeetingLine : public TQFrame
public:
MeetingLine(bool isOwner, bool readerIsServer, bool serverLine,
TQWidget *tqparent, const char *name = 0);
TQWidget *parent, const char *name = 0);
MeetingCheckBox::Type type() const { return tcb->type(); }
void setType(MeetingCheckBox::Type type) { tcb->setType(type); }
@ -58,7 +58,7 @@ class PlayerLine : public TQFrame
PlayerLine(PlayerComboBox::Type type, const TQString &txt,
bool humanSetting, bool AISetting,
bool canBeEmpty, bool acceptAI,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
PlayerComboBox::Type type() const { return pcb->type(); }
TQString name() const { return edit->text(); }
@ -86,13 +86,13 @@ class GWidgetList : public TQWidget
TQ_OBJECT
public:
GWidgetList(uint interval, TQWidget *tqparent = 0, const char * name = 0);
GWidgetList(uint interval, TQWidget *parent = 0, const char * name = 0);
void remove(uint i);
uint size() const { return widgets.count(); }
protected:
/** The widget must be created with this widget as tqparent. */
/** The widget must be created with this widget as parent. */
void append(TQWidget *);
TQWidget *widget(uint i) { return widgets.at(i); }
@ -105,8 +105,8 @@ template <class Type>
class WidgetList : public GWidgetList
{
public:
WidgetList(uint interval, TQWidget *tqparent=0, const char *name=0)
: GWidgetList(interval, tqparent, name) {}
WidgetList(uint interval, TQWidget *parent=0, const char *name=0)
: GWidgetList(interval, parent, name) {}
void append(Type *w) { GWidgetList::append(w); }
Type *widget(uint i) { return (Type *)GWidgetList::widget(i); }

@ -21,13 +21,13 @@
#endif
Socket::Socket(KExtendedSocket *s, bool createNotifier,
TQObject *tqparent, const char *name)
TQObject *parent, const char *name)
: _socket(s), _notifier(0)
{
Q_ASSERT(s);
if (createNotifier) {
_notifier = new TQSocketNotifier(s->fd(), TQSocketNotifier::Read,
tqparent, name);
parent, name);
_notifier->setEnabled(FALSE);
}
}

@ -12,7 +12,7 @@ class Socket
{
public:
Socket(KExtendedSocket *, bool createNotifier = FALSE,
TQObject *tqparent = 0, const char *name = 0);
TQObject *parent = 0, const char *name = 0);
/** close the socket */
~Socket();

@ -32,8 +32,8 @@
#define MAX_USER_PORT 65535
MPWizard::MPWizard(const MPGameInfo &gi, ConnectionData &_cd,
TQWidget *tqparent, const char *name)
: KWizard(tqparent, name, TRUE), cd(_cd)
TQWidget *parent, const char *name)
: KWizard(parent, name, TRUE), cd(_cd)
{
// setupTypePage(); // #### REMOVE NETWORK GAMES UNTIL FIXED
type = Local;

@ -23,7 +23,7 @@ class MPWizard : public KWizard
public:
MPWizard(const MPGameInfo &gi, ConnectionData &cd,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
void showPage(TQWidget *page);

@ -57,7 +57,7 @@ bool KChildConnect::SendMsg(KEMessage *msg)
return Send(sendstring);
}
// Send string to tqparent
// Send string to parent
bool KChildConnect::Send(TQString str)
{
if (!str || str.length()<1) return true; // no need to send crap

@ -22,8 +22,8 @@
#include "KEInput.moc"
KEInput::KEInput(TQObject * tqparent)
: TQObject(tqparent,0)
KEInput::KEInput(TQObject * parent)
: TQObject(parent,0)
{
number_of_inputs=0;
locked=FALSE;

@ -47,7 +47,7 @@ class KEInput : public TQObject
TQMemArray<KConnectEntry> playerArray;
public:
KEInput(TQObject * tqparent=0);
KEInput(TQObject * parent=0);
~KEInput();
int QueryNumberOfInputs();
int QueryNext();

@ -36,7 +36,7 @@
TQPtrList<LSkatView> *LSkatDoc::pViewList = 0L;
LSkatDoc::LSkatDoc(TQWidget *tqparent, const char *name) : TQObject(tqparent, name)
LSkatDoc::LSkatDoc(TQWidget *parent, const char *name) : TQObject(parent, name)
{
int i;
if(!pViewList)

@ -50,7 +50,7 @@ class LSkatDoc : public TQObject
TQ_OBJECT
public:
/** Constructor for the fileclass of the application */
LSkatDoc(TQWidget *tqparent, const char *name=0);
LSkatDoc(TQWidget *parent, const char *name=0);
/** Destructor for the fileclass of the application */
~LSkatDoc();

@ -104,7 +104,7 @@
#define MOVECOUNTER 20 // so many moves when playing card
#define MOVE_TIMER_DELAY 7 // timer in milllisec default 7
LSkatView::LSkatView(TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
LSkatView::LSkatView(TQWidget *parent, const char *name) : TQWidget(parent, name)
{
setBackgroundMode(PaletteBase);
// setBackgroundMode(NoBackground);

@ -42,9 +42,9 @@ class LSkatView : public TQWidget
TQ_OBJECT
public:
/** Constructor for the main view */
LSkatView(TQWidget *tqparent = 0, const char *name=0);
LSkatView(TQWidget *parent = 0, const char *name=0);
/** returns a pointer to the document connected to the view instance. Mind that this method requires a LSkatApp instance as a tqparent
/** returns a pointer to the document connected to the view instance. Mind that this method requires a LSkatApp instance as a parent
* widget to get to the window document pointer by calling the LSkatApp::getDocument() method.
*
* @see LSkatApp#getDocument

@ -37,8 +37,8 @@
// Create the dialog for changing the player names
MsgDlg::MsgDlg( TQWidget *tqparent, const char *name,const char * /*sufi */ )
: TQDialog( tqparent, name,TRUE )
MsgDlg::MsgDlg( TQWidget *parent, const char *name,const char * /*sufi */ )
: TQDialog( parent, name,TRUE )
{
setCaption(i18n("Send Message to Remote Player"));
setMinimumSize(400,160);

@ -26,7 +26,7 @@ class MsgDlg : public TQDialog
TQ_OBJECT
public:
MsgDlg (TQWidget* tqparent = NULL,const char* name = NULL,const char *sufi=NULL);
MsgDlg (TQWidget* parent = NULL,const char* name = NULL,const char *sufi=NULL);
TQString GetMsg();
protected slots:

@ -19,15 +19,15 @@
#define NAME_MAX_LEN 12
/*
* Constructs a NameDlg which is a child of 'tqparent', with the
* Constructs a NameDlg which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
NameDlg::NameDlg( TQWidget *tqparent, const char *name,bool /* modal */, WFlags /* fl */ )
NameDlg::NameDlg( TQWidget *parent, const char *name,bool /* modal */, WFlags /* fl */ )
: KDialogBase( Plain, i18n("Configure Names"), Ok|Cancel, Ok,
tqparent, name, true,true )
parent, name, true,true )
{
TQWidget *page = plainPage();

@ -24,7 +24,7 @@ class NameDlg : public KDialogBase
TQ_OBJECT
public:
NameDlg( TQWidget* tqparent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0 );
NameDlg( TQWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0 );
~NameDlg();
void SetNames(TQString n1,TQString n2);
void GetNames(TQString &n1,TQString &n2);

@ -25,8 +25,8 @@
extern const char* LSKAT_SERVICE;
// Create the dialog
NetworkDlg::NetworkDlg( TQWidget *tqparent, const char *name )
: NetworkDlgBase( tqparent, name, TRUE )
NetworkDlg::NetworkDlg( TQWidget *parent, const char *name )
: NetworkDlgBase( parent, name, TRUE )
{
browser = new DNSSD::ServiceBrowser(TQString::tqfromLatin1(LSKAT_SERVICE));
connect(browser,TQT_SIGNAL(finished()),TQT_SLOT(gamesFound()));

@ -28,7 +28,7 @@ class NetworkDlg : public NetworkDlgBase
TQ_OBJECT
public:
NetworkDlg(TQWidget* tqparent=NULL, const char* name=NULL);
NetworkDlg(TQWidget* parent=NULL, const char* name=NULL);
~NetworkDlg();
void SetName(const TQString& name);
void SetHost(const TQString& host);

@ -57,7 +57,7 @@ bool KChildConnect::SendMsg(KEMessage *msg)
return Send(sendstring);
}
// Send string to tqparent
// Send string to parent
bool KChildConnect::Send(TQString str)
{
if (!str || str.length()<1) return true; // no need to send crap

Loading…
Cancel
Save