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.h"
#include "atlanticclient.moc" #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())); connect(this, TQT_SIGNAL(readyRead()), this, TQT_SLOT(readData()));
} }

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

@ -64,7 +64,7 @@
#include "selectgame_widget.h" #include "selectgame_widget.h"
#include "selectconfiguration_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 #ifdef KDE_3_2_FEATURES
m_clear = KStdAction::clear( TQT_TQOBJECT(this), TQT_SLOT( clear() ), 0 ); m_clear = KStdAction::clear( TQT_TQOBJECT(this), TQT_SLOT( clear() ), 0 );

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

@ -40,9 +40,9 @@
#include "atlantik.h" #include "atlantik.h"
#include "configdlg.moc" #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_general = addPage(i18n("General"), i18n("General"), BarIcon("configure", KIcon::SizeMedium));
p_p13n = addPage(i18n("Personalization"), i18n("Personalization"), BarIcon("personal", 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)); p_board = addPage(i18n("Board"), i18n("Board"), BarIcon("monop_board", KIcon::SizeMedium));
@ -111,21 +111,21 @@ AtlantikConfig ConfigDialog::config()
return m_parent->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; 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); tqlayout->addWidget(label);
m_playerName = new TQLineEdit(tqparent); m_playerName = new TQLineEdit(parent);
tqlayout->addWidget(m_playerName); tqlayout->addWidget(m_playerName);
TQLabel *label2 = new TQLabel(i18n("Player image:"), tqparent); TQLabel *label2 = new TQLabel(i18n("Player image:"), parent);
tqlayout->addWidget(label2); tqlayout->addWidget(label2);
m_playerIcon = new KPushButton(tqparent, "playerIcon"); m_playerIcon = new KPushButton(parent, "playerIcon");
tqlayout->addWidget(m_playerIcon); tqlayout->addWidget(m_playerIcon);
connect( m_playerIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseImage()) ); connect( m_playerIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseImage()) );
@ -182,12 +182,12 @@ void ConfigPlayer::reset()
setImage(); 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; 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); tqlayout->addWidget(m_connectOnStart);
TQString message=i18n( TQString message=i18n(
@ -195,7 +195,7 @@ ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *tqpar
"request a list of Internet servers.\n"); "request a list of Internet servers.\n");
TQWhatsThis::add(m_connectOnStart, message); 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); tqlayout->addWidget(m_hideDevelopmentServers);
message=i18n( message=i18n(
@ -225,12 +225,12 @@ void ConfigMonopigator::reset()
m_hideDevelopmentServers->setChecked(m_configDialog->config().hideDevelopmentServers); 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; 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); tqlayout->addWidget(m_chatTimestamps);
TQString message=i18n( TQString message=i18n(
@ -253,12 +253,12 @@ void ConfigGeneral::reset()
m_chatTimestamps->setChecked(m_configDialog->config().chatTimestamps); 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; 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); tqlayout->addWidget(box);
m_indicateUnowned = new TQCheckBox(i18n("Display title deed card on unowned properties"), 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"); "will have a Quartz effect similar to the Quartz KWin style.\n");
TQWhatsThis::add(m_quartzEffects, message); 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->addWidget(box);
tqlayout->addStretch(1); tqlayout->addStretch(1);

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

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

@ -55,7 +55,7 @@ Q_OBJECT
public: public:
enum EventLogType { Default, Net_In, Net_Out }; 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: public slots:
void addEvent(Event *event); 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; m_isDev = ( version.find( TQRegExp("(CVS|-dev)") ) != -1 ) ? true : false;
setEnabled(false); setEnabled(false);
tqparent->sort(); parent->sort();
if ( !ip.isEmpty() ) if ( !ip.isEmpty() )
host = ip; host = ip;

@ -62,7 +62,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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; int compare(TQListViewItem *i, int col, bool ascending) const;
bool isDev() const; bool isDev() const;

@ -33,7 +33,7 @@
#include "selectconfiguration_widget.moc" #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_atlanticCore = atlanticCore;
m_game = 0; m_game = 0;

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

@ -29,7 +29,7 @@
#include "selectgame_widget.h" #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; m_atlanticCore = atlanticCore;

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

@ -28,7 +28,7 @@
#include "selectserver_widget.moc" #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; m_hideDevelopmentServers = hideDevelopmentServers;

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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(); virtual ~SelectServer();
void initPage(); void initPage();

@ -26,7 +26,7 @@
#include "player.h" #include "player.h"
#include "trade.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; m_playerSelf = 0;
} }

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

@ -33,7 +33,7 @@
#include "auction_widget.moc" #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; m_atlanticCore = atlanticCore;

@ -39,7 +39,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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: private slots:
void auctionChanged(); void auctionChanged();

@ -35,7 +35,7 @@
#include "board.h" #include "board.h"
#include "board.moc" #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_atlanticCore = atlanticCore;
m_maxEstates = maxEstates; m_maxEstates = maxEstates;

@ -40,7 +40,7 @@ Q_OBJECT
public: public:
enum DisplayMode { Play, Edit }; 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(); ~AtlantikBoard();
void reset(); void reset();

@ -39,7 +39,7 @@
#include "estatedetails.h" #include "estatedetails.h"
#include "kwrappedlistviewitem.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_pixmap = 0;
m_quartzBlocks = 0; m_quartzBlocks = 0;

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

@ -36,7 +36,7 @@
#include "estateview.moc" #include "estateview.moc"
#include "config.h" #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_estate = estate;
m_orientation = orientation; m_orientation = orientation;

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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); void setViewProperties(bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects);
Estate *estate() { return m_estate; } Estate *estate() { return m_estate; }
void updatePE(); void updatePE();

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

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

@ -21,7 +21,7 @@
#include "portfolioestate.moc" #include "portfolioestate.moc"
#include "estate.h" #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_estate = estate;
m_player = player; m_player = player;

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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; } Estate *estate() { return m_estate; }
static TQPixmap drawPixmap(Estate *estate, Player *player = 0, bool alwaysOwned = true); static TQPixmap drawPixmap(Estate *estate, Player *player = 0, bool alwaysOwned = true);

@ -40,7 +40,7 @@
#define PE_MARGINH 2 #define PE_MARGINH 2
#define ICONSIZE 48 #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_atlanticCore = core;
m_player = player; m_player = player;

@ -36,7 +36,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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(); ~PortfolioView();
void buildPortfolio(); void buildPortfolio();

@ -33,11 +33,11 @@
#define TOKEN_ICONSIZE 32 #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 setBackgroundMode(NoBackground); // avoid flickering
m_parentBoard = tqparent; m_parentBoard = parent;
m_player = player; m_player = player;
connect(m_player, TQT_SIGNAL(changed(Player *)), this, TQT_SLOT(playerChanged())); connect(m_player, TQT_SIGNAL(changed(Player *)), this, TQT_SLOT(playerChanged()));

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

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

@ -42,7 +42,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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; } Trade *trade() { return mTrade; }

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

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

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

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

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

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

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

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

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

@ -26,7 +26,7 @@
extern int level; 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")) data(locate("appdata", "pics/molek.png"))
{ {
setBackgroundColor (TQColor (0, 0, 0)); setBackgroundColor (TQColor (0, 0, 0));

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

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

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

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

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

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

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

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

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

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

@ -51,7 +51,7 @@ public:
/* /*
* Constructor and destructor * 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(); virtual ~KBgEngineGNU();
/** /**

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

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

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

@ -58,7 +58,7 @@ public:
/* /*
* Constructor and destructor * 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(); virtual ~KBgEngineNg();
/** /**
@ -245,7 +245,7 @@ private:
/** /**
* Create the i-th player. Legal values for i are 0 and 1. The * 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 * the player is @ref _player. That means that the players are
* automatically deleted. * automatically deleted.
*/ */

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

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

@ -248,8 +248,8 @@ void KBgBoardSetup::getSetupPages(KDialogBase *nb)
/* /*
* Empty constructor calls the board constructor * Empty constructor calls the board constructor
*/ */
KBgBoardSetup::KBgBoardSetup(TQWidget *tqparent, const char *name, TQPopupMenu *menu) KBgBoardSetup::KBgBoardSetup(TQWidget *parent, const char *name, TQPopupMenu *menu)
: KBgBoard(tqparent, name, menu) : KBgBoard(parent, name, menu)
{ {
// empty // empty
} }
@ -1610,8 +1610,8 @@ KBgBoardField::~KBgBoardField()
* This is the constructor of the bars. It calls the base class' constructor * This is the constructor of the bars. It calls the base class' constructor
* and defines the TQWhatsThis string. * and defines the TQWhatsThis string.
*/ */
KBgBoardBar::KBgBoardBar(TQWidget * tqparent, int numID) KBgBoardBar::KBgBoardBar(TQWidget * parent, int numID)
: KBgBoardCell(tqparent, numID) : KBgBoardCell(parent, numID)
{ {
TQWhatsThis::add(this, i18n("This is the bar of the backgammon board.\n\n" TQWhatsThis::add(this, i18n("This is the bar of the backgammon board.\n\n"
"Checkers that have been kicked from the board are put " "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 * This is the constructor of regular fields. It calls the base class' constructor
* and defines the TQWhatsThis string. * and defines the TQWhatsThis string.
*/ */
KBgBoardField::KBgBoardField(TQWidget * tqparent, int numID) KBgBoardField::KBgBoardField(TQWidget * parent, int numID)
: KBgBoardCell(tqparent, numID) : KBgBoardCell(parent, numID)
{ {
TQWhatsThis::add(this, i18n("This is a regular field of the backgammon board.\n\n" 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 " "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 * This is the constructor of the homes. It calls the base class' constructor
* and defines the TQWhatsThis string. * and defines the TQWhatsThis string.
*/ */
KBgBoardHome::KBgBoardHome(TQWidget * tqparent, int numID) KBgBoardHome::KBgBoardHome(TQWidget * parent, int numID)
: KBgBoardCell(tqparent, numID) : KBgBoardCell(parent, numID)
{ {
TQWhatsThis::add(this, i18n("This part of the backgammon board is the home.\n\n" 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 " "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 * This is the constructor of the basic cells. It initializes the cell
* to a sane state and connects a signal to the board. * to a sane state and connects a signal to the board.
*/ */
KBgBoardCell::KBgBoardCell(TQWidget * tqparent, int numID) KBgBoardCell::KBgBoardCell(TQWidget * parent, int numID)
: TQLabel(tqparent) : TQLabel(parent)
{ {
board = (KBgBoard *)tqparent; board = (KBgBoard *)parent;
direction = +1; direction = +1;
color = -1; color = -1;
@ -1749,7 +1749,7 @@ KBgBoardCell::KBgBoardCell(TQWidget * tqparent, int numID)
mouseButton = Qt::NoButton; mouseButton = Qt::NoButton;
dragInProgress = false; 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() void KBgBoard::showContextMenu()
{ {
@ -2162,10 +2162,10 @@ void KBgBoardCell::mouseMoveEvent(TQMouseEvent *)
board->drawSimpleChecker(&tmp, 0, 0, pcs, getCheckerDiameter()); board->drawSimpleChecker(&tmp, 0, 0, pcs, getCheckerDiameter());
tmp.end(); tmp.end();
pix.setMask(pix.createHeuristicMask()); pix.setMask(pix.createHeuristicMask());
TQBitmap tqmask = *(pix.tqmask()); TQBitmap mask = *(pix.mask());
TQBitmap newCursor; TQBitmap newCursor;
newCursor = pix; newCursor = pix;
board->replaceCursor(TQCursor(newCursor, tqmask)); board->replaceCursor(TQCursor(newCursor, mask));
if (board->getEditMode()) if (board->getEditMode())
board->storeTurn(pcs); board->storeTurn(pcs);
getPiece(); 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. * of the board by calling sendMove() after the undo.
*/ */
void KBgBoard::undoMove() void KBgBoard::undoMove()
@ -2823,8 +2823,8 @@ void KBgBoard::getRollDice(const int w)
* You have to change the status by passing a KBgtqStatus * You have to change the status by passing a KBgtqStatus
* object to setState(...) before you can play! * object to setState(...) before you can play!
*/ */
KBgBoard::KBgBoard(TQWidget *tqparent, const char *name, TQPopupMenu *menu) KBgBoard::KBgBoard(TQWidget *parent, const char *name, TQPopupMenu *menu)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
/* /*
* The following lines set up internal bookkeeping data. * 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; 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; contextMenu = menu;

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

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

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

@ -20,10 +20,10 @@
#include "kbattlefield.h" #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_parent = parent;
m_width = tqparent->width(); m_width = parent->width();
m_canDraw = true; m_canDraw = true;
m_ownfieldx = 10; m_ownfieldx = 10;
@ -91,7 +91,7 @@ void KBattleField::drawOwnField()
if(!m_canDraw) if(!m_canDraw)
return; 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; KShip *ship = 0;
int data; int data;
@ -151,7 +151,7 @@ void KBattleField::drawEnemyField()
if(!m_canDraw) if(!m_canDraw)
return; 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++) for(int i = 0; i != m_enemyfieldx; i++)
{ {

@ -27,7 +27,7 @@ class KBattleField : public KGridWidget
{ {
public: public:
enum{FREE, WATER, HIT, DEATH, BORDER, SHIP1P1, SHIP2P1, SHIP2P2, SHIP3P1, SHIP3P2, SHIP3P3, SHIP4P1, SHIP4P2, SHIP4P3, SHIP4P4}; 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 clearOwnField();
void clearEnemyField(); void clearEnemyField();

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

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

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

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

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

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

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

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

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

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

@ -17,10 +17,10 @@
#include <krandomsequence.h> #include <krandomsequence.h>
#include "kbhorizontalstepstrategy.h" #include "kbhorizontalstepstrategy.h"
KBHorizontalStepStrategy::KBHorizontalStepStrategy(KBStrategy *tqparent) : KBStrategy(tqparent) KBHorizontalStepStrategy::KBHorizontalStepStrategy(KBStrategy *parent) : KBStrategy(parent)
{ {
m_child = 0; 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_destroyer = new KBDestroyShipStrategy(this);
m_destroying = false; m_destroying = false;

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

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

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

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

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

@ -18,11 +18,11 @@
#include <krandomsequence.h> #include <krandomsequence.h>
#include "kbverticalstepstrategy.h" #include "kbverticalstepstrategy.h"
KBVerticalStepStrategy::KBVerticalStepStrategy(KBStrategy *tqparent) : KBStrategy(tqparent) KBVerticalStepStrategy::KBVerticalStepStrategy(KBStrategy *parent) : KBStrategy(parent)
{ {
m_child = 0; 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_destroyer = new KBDestroyShipStrategy(this);
m_destroying = false; m_destroying = false;

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

@ -18,7 +18,7 @@
#include <kapplication.h> #include <kapplication.h>
#include "kchatwidget.moc" #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(sendBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotComputeMessage()));
connect(commentEdit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotComputeMessage())); connect(commentEdit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotComputeMessage()));

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

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

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

@ -26,10 +26,10 @@
#include "kbattlefield.h" #include "kbattlefield.h"
#include "kgridwidget.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_doubleBuffer = new TQPixmap(parent->width(), parent->height());
m_parent = tqparent; m_parent = parent;
cleanBuffer(); cleanBuffer();
cacheImages(); cacheImages();

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

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

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

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

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

@ -19,7 +19,7 @@
#include <tqlabel.h> #include <tqlabel.h>
#include "kstatdialog.moc" #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 Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KStatDialog(TQWidget *tqparent = 0, const char *name = 0); KStatDialog(TQWidget *parent = 0, const char *name = 0);
void setShot(); void setShot();
void setShot(int shot); void setShot(int shot);

@ -174,7 +174,7 @@ KBBGame::~KBBGame()
kConf->writeEntry( "tutorial", (int) tutorial ); kConf->writeEntry( "tutorial", (int) tutorial );
delete gameBoard; 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. Constructs a KBBGraphic widget.
*/ */
KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* tqparent, const char* name ) KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* parent, const char* name )
: TQWidget( tqparent, name ) : TQWidget( parent, name )
{ {
int i; int i;

@ -55,7 +55,7 @@ class KBBGraphic : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KBBGraphic( TQPixmap** p=0, TQWidget* tqparent=0, const char* name=0 ); KBBGraphic( TQPixmap** p=0, TQWidget* parent=0, const char* name=0 );
~KBBGraphic(); ~KBBGraphic();
friend class KBBGame; 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 ) Wall::Wall( JezzField *field, int x, int y, Direction dir, int tile, TQObject *parent, const char *name )
: TQObject( tqparent, name ), m_dir( dir ), m_field( field ), m_startX( x ), m_startY( y ), : 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 ) m_tile( tile ), m_delay( MS2TICKS(WALL_DELAY)/2 ), m_active( true )
{ {
//kdDebug(12008) << "Wall::Wall" << endl; //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 ) JezzField::JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* parent, const char* name )
: TQCanvas( tqparent, name ), m_tiles( tiles ) : TQCanvas( parent, name ), m_tiles( tiles )
{ {
setPixmaps( tiles, background ); 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) JezzView::JezzView(TQCanvas* viewing, TQWidget* parent, const char* name, WFlags f)
: TQCanvasView( viewing, tqparent, name, f ), m_vertical( false ) : TQCanvasView( viewing, parent, name, f ), m_vertical( false )
{ {
setResizePolicy( AutoOne ); setResizePolicy( AutoOne );
setHScrollBarMode( AlwaysOff ); setHScrollBarMode( AlwaysOff );
@ -340,8 +340,8 @@ void JezzView::viewportMouseReleaseEvent( TQMouseEvent *ev )
/*************************************************************************/ /*************************************************************************/
JezzGame::JezzGame( const TQPixmap &background, int ballNum, TQWidget *tqparent, const char *name ) JezzGame::JezzGame( const TQPixmap &background, int ballNum, TQWidget *parent, const char *name )
: TQWidget( tqparent, name ), m_wall1( 0 ), m_wall2( 0 ), : TQWidget( parent, name ), m_wall1( 0 ), m_wall2( 0 ),
m_text( 0 ), m_running( false ), m_percent( 0 ), m_pictured( false ) m_text( 0 ), m_running( false ), m_percent( 0 ), m_pictured( false )
{ {
TQString path = kapp->dirs()->findResourceDir( "data", "kbounce/pics/ball0000.png" ) + "kbounce/pics/"; TQString path = kapp->dirs()->findResourceDir( "data", "kbounce/pics/ball0000.png" ) + "kbounce/pics/";

@ -58,7 +58,7 @@ public:
enum Direction { Up, Down, Left, Right }; enum Direction { Up, Down, Left, Right };
Wall( JezzField *field, int x, int y, Direction dir, int tile, 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 finish();
void fill( bool black ); void fill( bool black );
@ -89,7 +89,7 @@ class JezzField : public TQCanvas
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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 setGameTile( int x, int y, bool black );
void setBackground( const TQPixmap &background ); void setBackground( const TQPixmap &background );
@ -115,7 +115,7 @@ class JezzView : public TQCanvasView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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: signals:
void buildWall( int x, int y, bool vertical ); void buildWall( int x, int y, bool vertical );
@ -134,7 +134,7 @@ class JezzGame : public TQWidget
TQ_OBJECT TQ_OBJECT
public: 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(); ~JezzGame();
int percent(); int percent();

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

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

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

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

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

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

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

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

@ -10,8 +10,8 @@
#include "board.h" #include "board.h"
FEField::FEField(TQWidget *tqparent) FEField::FEField(TQWidget *parent)
: Field(tqparent) : Field(parent)
{ {
Board *b = static_cast<Board *>(board); Board *b = static_cast<Board *>(board);
TQWhatsThis::add(b->giftPool(), i18n("Display the amount of foul eggs sent by your opponent.")); 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 Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FEField(TQWidget *tqparent); FEField(TQWidget *parent);
private slots: private slots:
virtual void removedUpdated(); virtual void removedUpdated();

@ -65,9 +65,9 @@ FEFactory::FEFactory()
: CommonFactory(MAIN_DATA, BASE_BOARD_INFO, COMMON_BOARD_INFO) : 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(); FEFactory();
protected: protected:
virtual BaseBoard *createBoard(bool graphic, TQWidget *tqparent) virtual BaseBoard *createBoard(bool graphic, TQWidget *parent)
{ return new FEBoard(graphic, tqparent); } { return new FEBoard(graphic, parent); }
virtual BaseField *createField(TQWidget *tqparent) virtual BaseField *createField(TQWidget *parent)
{ return new FEField(tqparent); } { return new FEField(parent); }
virtual BaseInterface *createInterface(TQWidget *tqparent); virtual BaseInterface *createInterface(TQWidget *parent);
virtual AI *createAI() { return new FEAI; } virtual AI *createAI() { return new FEAI; }
}; };

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

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

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

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

@ -2226,10 +2226,10 @@ bool KGrGame::ownerOK (Owner o)
/********************** CLASS TO DISPLAY THUMBNAIL ***********************/ /********************** CLASS TO DISPLAY THUMBNAIL ***********************/
/******************************************************************************/ /******************************************************************************/
KGrThumbNail::KGrThumbNail (TQWidget * tqparent, const char * name) KGrThumbNail::KGrThumbNail (TQWidget * parent, const char * name)
: TQFrame (tqparent, 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 // TQFrame::drawContents (TQPainter *) can be re-implemented and
// the thumbnail can be automatically re-painted when required. // the thumbnail can be automatically re-painted when required.
} }
@ -2588,12 +2588,12 @@ bool KGrGame::saveCollections (Owner o)
/********************** WORD-WRAPPED MESSAGE BOX ************************/ /********************** 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. // Halt the game while the message is displayed.
setMessageFreeze (TRUE); setMessageFreeze (TRUE);
KGrMessage::wrapped (tqparent, title, contents); KGrMessage::wrapped (parent, title, contents);
// Unfreeze the game, but only if it was previously unfrozen. // Unfreeze the game, but only if it was previously unfrozen.
setMessageFreeze (FALSE); setMessageFreeze (FALSE);

@ -265,7 +265,7 @@ private:
/********************** WORD-WRAPPED MESSAGE BOX ************************/ /********************** 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 class KGrThumbNail : public TQFrame
{ {
public: 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. void setFilePath (TQString &, TQLabel *); // Set filepath and name field.
static TQColor backgroundColor; static TQColor backgroundColor;

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

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

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

@ -39,7 +39,7 @@ class KCubeWidget : public TQFrame , public Cube
public: public:
/** constructs a new KCubeWidget*/ /** 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); ,Owner owner=Cube::Nobody,int value=1,int max=0);
virtual ~KCubeWidget(); virtual ~KCubeWidget();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -23,7 +23,7 @@ public:
Editor Editor
( (
TQWidget* tqparent = NULL, TQWidget* parent = NULL,
const char* name = 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 ) GameTimer::GameTimer( TQWidget *parent, const char *name )
: TQLCDNumber( tqparent, name ) : TQLCDNumber( parent, name )
{ {
showingColon = false; showingColon = false;
setNumDigits(7); setNumDigits(7);

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

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

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

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

@ -17,7 +17,7 @@ class FrameImage: public TQFrame
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FrameImage(TQWidget *tqparent=NULL, const char *name = NULL); FrameImage(TQWidget *parent=NULL, const char *name = NULL);
~FrameImage(); ~FrameImage();
void setGeometry(int x, int y, int w, int h); void setGeometry(int x, int y, int w, int h);
TQPixmap *getPreviewPixmap() {return thePixmap;} TQPixmap *getPreviewPixmap() {return thePixmap;}
@ -49,7 +49,7 @@ class Preview: public KDialogBase
public: public:
enum PreviewType {background, tileset, board, theme}; enum PreviewType {background, tileset, board, theme};
Preview(TQWidget* tqparent); Preview(TQWidget* parent);
~Preview(); ~Preview();
void initialise(const PreviewType type); 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) { if (!scale) {
dest.convertFromImage(buff); dest.convertFromImage(buff);
dest.setMask(maskBits); dest.setMask(maskBits);

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -50,8 +50,8 @@ class SolverPrivate
#endif #endif
}; };
Solver::Solver(TQObject *tqparent) Solver::Solver(TQObject *parent)
: TQObject(tqparent) : TQObject(parent)
{ {
d = new SolverPrivate; 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, : KDialogBase(Plain, i18n("Compute Solving Rate"), Ok|Close,
Close, tqparent, "compute_solving_rate", true, true), Close, parent, "compute_solving_rate", true, true),
_refField(field) _refField(field)
{ {
connect(&_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool))); connect(&_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool)));

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

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

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

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

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

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

@ -125,7 +125,7 @@ public:
* returns a Config that can be used to configure this item by the user. * returns a Config that can be used to configure this item by the user.
* The default implementation returns one that says 'No configuration options'. * 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). * returns other items that should be moveable (besides this one of course).
*/ */

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

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

@ -9,8 +9,8 @@
#include "editor.h" #include "editor.h"
#include "game.h" #include "game.h"
Editor::Editor(ObjectList *list, TQWidget *tqparent, const char *name) Editor::Editor(ObjectList *list, TQWidget *parent, const char *name)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
this->list = list; this->list = list;
config = 0; 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) FloaterConfig::FloaterConfig(Floater *floater, TQWidget *parent)
: BridgeConfig(floater, tqparent) : BridgeConfig(floater, parent)
{ {
this->floater = floater; this->floater = floater;
m_vtqlayout->addStretch(); m_vtqlayout->addStretch();

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

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

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

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

@ -52,7 +52,7 @@ public:
* @param _text Text of the label * @param _text Text of the label
* @param _value Initial value of the combobox * @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(); virtual ~KComboBoxDialog();
/** /**
@ -73,7 +73,7 @@ public:
* @param _value Initial value of the inputline * @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 * @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. * Static convenience function to get input from the user.
@ -85,7 +85,7 @@ public:
* @param _value Initial value of the inputline * @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 * @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. * Static convenience method.
@ -96,13 +96,13 @@ public:
* @param _text Text of the label * @param _text Text of the label
* @param _value Initial value of the inputline * @param _value Initial value of the inputline
* @param ok Variable to store whether the user hit OK * @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 * @param configName Name of the dialog for saving the completion and history
* @parma config KConfig for saving the completion and history * @parma config KConfig for saving the completion and history
*/ */
static TQString getText(const TQString &_caption, const TQString &_text, static TQString getText(const TQString &_caption, const TQString &_text,
const TQString &_value = TQString(), const TQString &_value = TQString(),
bool *ok = 0, TQWidget *tqparent = 0, bool *ok = 0, TQWidget *parent = 0,
const TQString &configName = TQString(), const TQString &configName = TQString(),
KConfig *config = KGlobal::config()); KConfig *config = KGlobal::config());

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

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

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

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

@ -13,7 +13,7 @@ class Object : public TQObject
TQ_OBJECT TQ_OBJECT
public: 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; } virtual TQCanvasItem *newObject(TQCanvas * /*canvas*/) { return 0; }
TQString name() { return m_name; } TQString name() { return m_name; }
TQString _name() { return m__name; } TQString _name() { return m__name; }

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

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

@ -14,7 +14,7 @@
#include "test.h" #include "test.h"
K_EXPORT_COMPONENT_FACTORY(libkolftest, TestFactory) 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; } { return new TestObj; }
Test::Test(TQCanvas *canvas) Test::Test(TQCanvas *canvas)
@ -65,8 +65,8 @@ void Test::load(KConfig *cfg)
setSwitchEvery(cfg->readNumEntry("switchEvery", 50)); setSwitchEvery(cfg->readNumEntry("switchEvery", 50));
} }
TestConfig::TestConfig(Test *test, TQWidget *tqparent) TestConfig::TestConfig(Test *test, TQWidget *parent)
: Config(tqparent), m_test(test) : Config(parent), m_test(test)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
@ -96,9 +96,9 @@ void TestConfig::switchEveryChanged(int news)
changed(); changed();
} }
Config *Test::config(TQWidget *tqparent) Config *Test::config(TQWidget *parent)
{ {
return new TestConfig(this, tqparent); return new TestConfig(this, parent);
} }
#include "test.moc" #include "test.moc"

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

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

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

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

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

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

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

@ -8,7 +8,7 @@
#include "fleetdlg.h" #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 ) FleetDlg::FleetDlg( TQWidget *parent, AttackFleetList *fleets )
: TQDialog(tqparent, "FleetDlg", true ), fleetList(fleets) : TQDialog(parent, "FleetDlg", true ), fleetList(fleets)
{ {
setCaption( kapp->makeStdCaption(i18n("Fleet Overview")) ); setCaption( kapp->makeStdCaption(i18n("Fleet Overview")) );

@ -10,14 +10,14 @@
class FleetDlgListViewItem : public TQListViewItem class FleetDlgListViewItem : public TQListViewItem
{ {
public: 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; int compare(TQListViewItem *i, int col, bool) const;
}; };
class FleetDlg : public TQDialog { class FleetDlg : public TQDialog {
public: public:
FleetDlg( TQWidget *tqparent, AttackFleetList *fleets ); FleetDlg( TQWidget *parent, AttackFleetList *fleets );
private: private:
void init(); void init();

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

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

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

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

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

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

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

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

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

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

@ -25,9 +25,9 @@
New Game Dialog Members New Game Dialog Members
************************************************************************/ ************************************************************************/
NewGameDlg::NewGameDlg( TQWidget *tqparent, Map *pmap, PlayerList *players, NewGameDlg::NewGameDlg( TQWidget *parent, Map *pmap, PlayerList *players,
Player *neutralPlayer, PlanetList *planets ) 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 ), KDialogBase::Ok|KDialogBase::Default|KDialogBase::Cancel, KDialogBase::NoDefault, true ),
plrList(players), plnetList(planets), neutral(neutralPlayer), plrList(players), plnetList(planets), neutral(neutralPlayer),
map(pmap) map(pmap)

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

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

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

@ -6,7 +6,7 @@
#include "scoredlg.h" #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 ) ScoreDlg::ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players )
: TQDialog(tqparent, "ScoreDlg", true ), plrList(players) : TQDialog(parent, "ScoreDlg", true ), plrList(players)
{ {
setCaption( kapp->makeStdCaption(title) ); setCaption( kapp->makeStdCaption(title) );

@ -10,7 +10,7 @@
class ScoreDlgListViewItem : public TQListViewItem class ScoreDlgListViewItem : public TQListViewItem
{ {
public: 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; int compare(TQListViewItem *i, int col, bool) const;
}; };
@ -18,7 +18,7 @@ class ScoreDlg : public TQDialog
{ {
public: public:
ScoreDlg( TQWidget *tqparent, const TQString& title, PlayerList *players ); ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players );
private: private:
void init(); void init();

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

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

@ -8,7 +8,7 @@ class Clock : public Dealer {
TQ_OBJECT TQ_OBJECT
public: 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 checkAdd ( int checkIndex, const Pile *c1, const CardList& c2) const;
virtual bool startAutoDrop() { return false; } virtual bool startAutoDrop() { return false; }

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

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

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

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

@ -10,8 +10,8 @@ const int NumberOfCards = 52;
Deck *Deck::my_deck = 0; Deck *Deck::my_deck = 0;
Deck::Deck( Dealer* tqparent, int m, int s ) Deck::Deck( Dealer* parent, int m, int s )
: Pile( 0, tqparent ), mult( m ) : Pile( 0, parent ), mult( m )
{ {
_deck = new Card * [mult*NumberOfCards]; _deck = new Card * [mult*NumberOfCards];
Q_CHECK_PTR (_deck); 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; return my_deck;
} }

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

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

@ -9,7 +9,7 @@ class HorLeftPile : public Pile
TQ_OBJECT TQ_OBJECT
public: 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 TQSize cardOffset( bool _spread, bool _facedown, const Card *before) const;
virtual void initSizes(); virtual void initSizes();
}; };
@ -20,7 +20,7 @@ class Fortyeight : public Dealer
TQ_OBJECT TQ_OBJECT
public: public:
Fortyeight( KMainWindow* tqparent=0, const char* name=0); Fortyeight( KMainWindow* parent=0, const char* name=0);
virtual bool isGameLost() const; virtual bool isGameLost() const;
public slots: 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 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, 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). (it does not implicitly specify it, though).
For more information regarding standard notation refer to the following 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. 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 This option (assuming the -s and -i options are specified) will also
display the iteration index of the state from which the current state 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. '2' - put freecell cards on top of stacks.
'3' - put non-top stack cards in the foundations. '3' - put non-top stack cards in the foundations.
'4' - move stack cards to different stacks. '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. '6' - move sequences of cards onto free stacks.
'7' - put freecell cards on empty 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. '9' - empty an entire stack into the freecells.
Atomic Freecell Tests: Atomic Freecell Tests:
'A' - move a stack card to an empty stack. '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. '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. 'E' - move a freecell card to an empty stack.
Simple Simon Tests: Simple Simon Tests:
'a' - move a full sequence to the foundations. 'a' - move a full sequence to the foundations.
'b' - move a sequence to a true tqparent of his. 'b' - move a sequence to a true parent of his.
'c' - move a whole stack sequence to a false tqparent (in order to clear 'c' - move a whole stack sequence to a false parent (in order to clear
the stack) the stack)
'd' - move a sequence to a true tqparent that has some cards above it. '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 tqparent. '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 tqparent that 'f' - move a sequence with a junk sequence above it to a true parent that
has some cards above it. 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. 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 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 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 --reparent-states
This option specifies that states that were encountered whose depth in the 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. option can possibly make solutions shorter.

@ -63,7 +63,7 @@
if (hash_value_int < 0) \ 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 \ * number so it will always be positive \
* */ \ * */ \
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1))); \ hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1))); \
@ -92,7 +92,7 @@
if (hash_value_int < 0) \ 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 \ * number so it will always be positive \
* */ \ * */ \
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1))); \ 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) 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 * number so it will always be positive
* */ * */
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1))); hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1)));
@ -437,7 +437,7 @@ void freecell_solver_cache_talon(
if (hash_value_int < 0) 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 * number so it will always be positive
* */ * */
hash_value_int &= (~(1<<((sizeof(hash_value_int)<<3)-1))); 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) if (check)
{ {
/* The new state was not found in the cache, and it was already inserted */ /* 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++; instance->num_states_in_collection++;

@ -170,7 +170,7 @@ typedef struct freecell_solver_instance
* The debug_iter_output variables provide a programmer programmable way * The debug_iter_output variables provide a programmer programmable way
* to debug the algorithm while it is running. This works well for DFS * 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 * 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 * debug_iter_output is a flag that indicates whether to use this feature
* at all. * at all.

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

@ -53,8 +53,8 @@ struct SFO_hash_struct
/* The size of the hash table */ /* The size of the hash table */
int size; int size;
/* A bit tqmask that extract the lowest bits out of the hash value */ /* A bit mask that extract the lowest bits out of the hash value */
int size_bittqmask; int size_bitmask;
/* The number of elements stored inside the hash */ /* The number of elements stored inside the hash */
int num_elems; int num_elems;
/* A context to pass to the comparison function */ /* 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); 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) && if ( (fcs_card_card_num(src_card) != 0) &&
fcs_is_parent_card(src_card,dest_card) ) 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; 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. * on the same stack.
* */ * */
for (stack=0;stack<state_stacks_num;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); 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; a = 1;
if (c != 0) if (c != 0)
{ {
@ -1368,7 +1368,7 @@ int freecell_solver_sfs_move_cards_to_a_different_parent(
fcs_move_init(temp_move); 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++) 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); 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; a = 1;
if (c != 0) if (c != 0)
{ {
@ -1697,7 +1697,7 @@ int freecell_solver_sfs_yukon_move_card_to_parent(
if (fcs_is_parent_card(card, dest_card)) if (fcs_is_parent_card(card, dest_card))
{ {
/* We can move it there - now let's check to see /* 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) || if ((c == 0) ||
(! fcs_is_parent_card(card, fcs_stack_card(state, stack, c-1)))) (! fcs_is_parent_card(card, fcs_stack_card(state, stack, c-1))))
{ {

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

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

@ -73,7 +73,7 @@ int freecell_solver_PQueuePush( PTQUEUE *pq, void *item, pq_rating_t r)
i = (++CurrentSize); 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 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 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 /* 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 */ 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_PARENT_INDEX(i) ((i)>>1)
#define PTQ_FIRST_ENTRY (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); freecell_solver_increase_dfs_max_depth(soft_thread);
/* Initialize the initial state to indicate it is the first */ /* 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->moves_to_parent = NULL;
ptr_state_with_locations_orig->depth = 0; 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; ptr_recurse_into_state_with_locations->visited_iter = instance->num_times;
#if 0 #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 #endif
/* /*
@ -958,7 +958,7 @@ int freecell_solver_a_star_or_bfs_do_solve_or_resume(
if (!resume) if (!resume)
{ {
/* Initialize the first element to indicate it is the first */ /* 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->moves_to_parent = NULL;
ptr_state_with_locations_orig->depth = 0; 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, ptr_state_with_locations->depth,
(void*)instance, (void*)instance,
ptr_state_with_locations, ptr_state_with_locations,
((ptr_state_with_locations->tqparent == NULL) ? ((ptr_state_with_locations->parent == NULL) ?
0 : 0 :
ptr_state_with_locations->tqparent->visited_iter ptr_state_with_locations->parent->visited_iter
) )
); );
} }

@ -19,16 +19,16 @@
#endif #endif
#define fcs_is_ss_false_parent(tqparent, child) \ #define fcs_is_ss_false_parent(parent, child) \
(fcs_card_card_num(tqparent) == fcs_card_card_num(child)+1) (fcs_card_card_num(parent) == fcs_card_card_num(child)+1)
#define fcs_suit_is_ss_true_parent(parent_suit, child_suit) \ #define fcs_suit_is_ss_true_parent(parent_suit, child_suit) \
((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_is_ss_false_parent(parent,child) && \
(fcs_suit_is_ss_true_parent(fcs_card_suit(tqparent),fcs_card_suit(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) if (cards_num > 0)
{ {
/* Loop on the cards in the stack and try to look for a true /* 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 = fcs_stack_card(state,stack,cards_num-1);
card_num = fcs_card_card_num(card); card_num = fcs_card_card_num(card);
suit = fcs_card_suit(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)) (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 */ * have enough empty stacks to make the move feasible */
if (calc_max_sequence_move(0, num_freestacks) >= num_true_seqs) 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)) (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 */ * have enough empty stacks to make the move feasible */
if (calc_max_sequence_move(0, num_freestacks) >= num_true_seqs) 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" * dest_cards_num - the number of cards in "ds"
* dc - the index of the current card in "ds". * dc - the index of the current card in "ds".
* num_separate_false_seqs - this variable tells how many distinct false * 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 * above_num_true_seqs[] - the number of true sequences in each false
* sequence * sequence
* seq_points[] - the separation points of the false sequences (i.e: where * 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)) (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. * 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; 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; for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num; clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++ 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. * We can do it - so let's move everything.
* Notice that we only put the child in a different stack * 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 * 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)) (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 */ * have enough empty stacks to make the move feasible */
for(a=0;a<state_stacks_num;a++) 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; 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; for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num; clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++ 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)) (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; int above_c;
fcs_card_t above_card, up_above_card; 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] 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; for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num; clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++ 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. * dest_cards_num - the number of cards in it.
* dc - the height of the card in "ds". * dc - the height of the card in "ds".
* num_separate_false_seqs - this variable tells how many distinct false * 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 * above_num_true_seqs[] - the number of true sequences in each false
* sequence * sequence
* seq_points[] - the separation points of the false sequences (i.e: where * 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)) (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; int above_c;
fcs_card_t above_card, up_above_card; 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]; 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; for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num; clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++ 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) 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 */ * have enough empty stacks to make the move feasible */
if (calc_max_sequence_move(0, num_freestacks) >= num_true_seqs) 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); cards_num = fcs_stack_len(state, stack);
if (cards_num > 2) if (cards_num > 2)
{ {
/* Search for a tqparent card */ /* Search for a parent card */
for(pc=0; pc < cards_num-1 ; pc++) for(pc=0; pc < cards_num-1 ; pc++)
{ {
parent_card = fcs_stack_card(state, stack, 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 #if 0
printf("Stack %i, Parent %i, Child %i\n", stack, pc, cc); printf("Stack %i, Parent %i, Child %i\n", stack, pc, cc);
fflush(stdout); 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; above_num_true_seqs[num_separate_false_seqs] = child_num_true_seqs;
seq_points[num_separate_false_seqs++] = cc; 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_card = fcs_stack_card(state, stack, cc-1);
above_num_true_seqs[num_separate_false_seqs] = 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; 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; for(clear_junk_dest_stack=0;
clear_junk_dest_stack < state_stacks_num; clear_junk_dest_stack < state_stacks_num;
clear_junk_dest_stack++ clear_junk_dest_stack++

@ -72,7 +72,7 @@ struct fcs_struct_state_with_locations_t
fcs_state_t s; fcs_state_t s;
int stack_locs[MAX_NUM_STACKS]; int stack_locs[MAX_NUM_STACKS];
int fc_locs[MAX_NUM_FREECELLS]; 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; fcs_move_stack_t * moves_to_parent;
int depth; int depth;
int visited; int visited;
@ -232,7 +232,7 @@ struct fcs_struct_state_with_locations_t
fcs_state_t s; fcs_state_t s;
char stack_locs[MAX_NUM_STACKS]; char stack_locs[MAX_NUM_STACKS];
char fc_locs[MAX_NUM_FREECELLS]; 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; fcs_move_stack_t * moves_to_parent;
int depth; int depth;
int visited; int visited;
@ -484,7 +484,7 @@ struct fcs_struct_state_with_locations_t
fcs_state_t s; fcs_state_t s;
fcs_locs_t stack_locs[MAX_NUM_STACKS]; fcs_locs_t stack_locs[MAX_NUM_STACKS];
fcs_locs_t fc_locs[MAX_NUM_FREECELLS]; 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; fcs_move_stack_t * moves_to_parent;
int depth; 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]; 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 variable sequences_are_built_by has to be initialized to
* the sequences_are_built_by member of the instance. * the sequences_are_built_by member of the instance.
* *
* */ * */
#define fcs_is_parent_card(child, tqparent) \ #define fcs_is_parent_card(child, parent) \
((fcs_card_card_num(child)+1 == fcs_card_card_num(tqparent)) && \ ((fcs_card_card_num(child)+1 == fcs_card_card_num(parent)) && \
((sequences_are_built_by == FCS_SEQ_BUILT_BY_RANK) ? \ ((sequences_are_built_by == FCS_SEQ_BUILT_BY_RANK) ? \
1 : \ 1 : \
((sequences_are_built_by == FCS_SEQ_BUILT_BY_SUIT) ? \ ((sequences_are_built_by == FCS_SEQ_BUILT_BY_SUIT) ? \
(fcs_card_suit(child) == fcs_card_suit(tqparent)) : \ (fcs_card_suit(child) == fcs_card_suit(parent)) : \
((fcs_card_suit(child) & 0x1) != (fcs_card_suit(tqparent)&0x1)) \ ((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. */ \ /* Count the number of states until the original state. */ \
while(ptr_state != NULL) \ while(ptr_state != NULL) \
{ \ { \
ptr_state = ptr_state->tqparent; \ ptr_state = ptr_state->parent; \
this_real_depth++; \ this_real_depth++; \
} \ } \
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; \ ptr_state->depth = this_real_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 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) \ #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); \ fcs_state_with_locations_t * ptr_state = (ptr_state_input); \
/* Mark as a dead end */ \ /* Mark as a dead end */ \
ptr_state->visited |= FCS_VISITED_DEAD_END; \ ptr_state->visited |= FCS_VISITED_DEAD_END; \
ptr_state = ptr_state->tqparent; \ ptr_state = ptr_state->parent; \
if (ptr_state != NULL) \ if (ptr_state != NULL) \
{ \ { \
/* Decrease the refcount of the state */ \ /* 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 */ \ /* Mark as dead end */ \
ptr_state->visited |= FCS_VISITED_DEAD_END; \ ptr_state->visited |= FCS_VISITED_DEAD_END; \
/* Go to its tqparent state */ \ /* Go to its parent state */ \
ptr_state = ptr_state->tqparent; \ ptr_state = ptr_state->parent; \
if (ptr_state == NULL) \ if (ptr_state == NULL) \
{ \ { \
break; \ break; \

@ -58,7 +58,7 @@ extern "C" {
/* Some A* and BFS parameters that need to be initialized in \ /* Some A* and BFS parameters that need to be initialized in \
* the derived state. \ * 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; \ ptr_new_state_with_locations->moves_to_parent = moves; \
/* Make sure depth is consistent with the game graph. \ /* Make sure depth is consistent with the game graph. \
* I.e: the depth of every newly discovered state is derived from \ * 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); \ fcs_state_ia_release(hard_thread); \
calculate_real_depth(existing_state); \ 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 \ * What it means is that if the depth of the state if it \
* can be reached from this one is lower than what 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 && \ if (reparent && \
(existing_state->depth > ptr_state_with_locations->depth+1)) \ (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->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( \ mark_as_dead_end( \
existing_state->tqparent \ existing_state->parent \
); \ ); \
} \ } \
ptr_state_with_locations->num_active_tqchildren++; \ 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; \ existing_state->depth = ptr_state_with_locations->depth + 1; \
} \ } \
fcs_derived_states_list_add_state( \ 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, FreecellBase::FreecellBase( int decks, int stores, int freecells, int fill, bool unlimit,
KMainWindow* tqparent, const char* name) KMainWindow* parent, const char* name)
: Dealer(tqparent,name), : Dealer(parent,name),
solver_instance(0), es_filling(fill), solver_ret(FCS_STATE_NOT_BEGAN_YET), solver_instance(0), es_filling(fill), solver_ret(FCS_STATE_NOT_BEGAN_YET),
unlimited_move(unlimit) unlimited_move(unlimit)
{ {
@ -813,12 +813,12 @@ bool FreecellBase::checkRemove(int checkIndex, const Pile *p, const Card *c) con
class Freecell : public FreecellBase class Freecell : public FreecellBase
{ {
public: public:
Freecell( KMainWindow* tqparent=0, const char* name=0); Freecell( KMainWindow* parent=0, const char* name=0);
virtual void deal(); virtual void deal();
}; };
Freecell::Freecell( KMainWindow* tqparent, const char* name) Freecell::Freecell( KMainWindow* parent, const char* name)
: FreecellBase(1, 8, 4, FCS_ES_FILLED_BY_ANY_CARD, false, tqparent, name) : FreecellBase(1, 8, 4, FCS_ES_FILLED_BY_ANY_CARD, false, parent, name)
{ {
for (int i = 0; i < 8; i++) for (int i = 0; i < 8; i++)
store[i]->move(8 + ( cardMap::CARDX() * 11 / 10 + 1 ) * i, 8 + cardMap::CARDY() * 11 / 10); 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: public:
LocalDealerInfo3() : DealerInfo(I18N_NOOP("&Freecell"), 3) {} 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; } ldi8;
//-------------------------------------------------------------------------// //-------------------------------------------------------------------------//

@ -27,7 +27,7 @@
class FreecellPile : public Pile class FreecellPile : public Pile
{ {
public: 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); virtual void moveCards(CardList &c, Pile *to);
}; };
@ -38,7 +38,7 @@ class FreecellBase : public Dealer
public: public:
FreecellBase( int decks, int stores, int freecells, int es_filling, bool unlimited_move, 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); void moveCards(CardList &c, FreecellPile *from, Pile *to);
TQString solverFormat() const; TQString solverFormat() const;
virtual ~FreecellBase(); virtual ~FreecellBase();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -34,9 +34,9 @@
#include "newgamedlg.h" #include "newgamedlg.h"
NewGameDlg::NewGameDlg(TQWidget* tqparent) NewGameDlg::NewGameDlg(TQWidget* parent)
: KDialogBase(Plain, i18n("New Game"), : 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()); TQVBoxLayout *topLayout = new TQVBoxLayout(plainPage(), spacingHint());
TQHBoxLayout *l = new TQHBoxLayout(topLayout); TQHBoxLayout *l = new TQHBoxLayout(topLayout);

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

@ -28,9 +28,9 @@
#include "defines.h" #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, : KDialogBase(Plain, i18n("Options")/*?*/, Ok|Cancel, Ok,
tqparent, name, true, true) parent, name, true, true)
{ {
TQVBoxLayout* topLayout = new TQVBoxLayout(plainPage(), spacingHint()); TQVBoxLayout* topLayout = new TQVBoxLayout(plainPage(), spacingHint());
maxBet = 0; maxBet = 0;

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

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

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

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

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

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

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

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

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

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

@ -32,7 +32,7 @@ class KSameWidget: public KMainWindow {
TQ_OBJECT TQ_OBJECT
public: 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: private slots:
/* File Menu */ /* File Menu */

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

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

@ -62,7 +62,7 @@
#include "prefs.h" #include "prefs.h"
#include "settings.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) cheat(false)
{ {
highscoreTable = new KHighscore(TQT_TQOBJECT(this)); highscoreTable = new KHighscore(TQT_TQOBJECT(this));

@ -65,7 +65,7 @@ class App : public KMainWindow
TQ_OBJECT TQ_OBJECT
public: public:
App(TQWidget *tqparent = 0, const char *name=0); App(TQWidget *parent = 0, const char *name=0);
private slots: private slots:
void loadSettings(); 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 size_y[5] = { 6, 8, 12, 14, 16};
static int DELAY[5] = {1000, 750, 500, 250, 125}; static int DELAY[5] = {1000, 750, 500, 250, 125};
Board::Board(TQWidget *tqparent, const char *name) : Board::Board(TQWidget *parent, const char *name) :
TQWidget(tqparent, name, WResizeNoErase), field(0), TQWidget(parent, name, WResizeNoErase), field(0),
_x_tiles(0), _y_tiles(0), _x_tiles(0), _y_tiles(0),
_delay(125), paused(false), _delay(125), paused(false),
gravity_flag(true), _solvable_flag(true), gravity_flag(true), _solvable_flag(true),

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

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

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

@ -11,8 +11,8 @@
#include "piece.h" #include "piece.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
KSField::KSField(TQWidget *tqparent) KSField::KSField(TQWidget *parent)
: Field(tqparent) : Field(parent)
{ {
const Board *b = static_cast<Board *>(board); const Board *b = static_cast<Board *>(board);
TQWhatsThis::add(b->giftPool(), i18n("Indicate the number of garbage lines you received from your opponent.")); 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 Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KSField(TQWidget *tqparent); KSField(TQWidget *parent);
private slots: private slots:
virtual void removedUpdated(); virtual void removedUpdated();

@ -64,9 +64,9 @@ KSFactory::KSFactory()
: CommonFactory(MAIN_DATA, BASE_BOARD_INFO, COMMON_BOARD_INFO) : 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(); KSFactory();
protected: protected:
virtual BaseBoard *createBoard(bool graphic, TQWidget *tqparent) virtual BaseBoard *createBoard(bool graphic, TQWidget *parent)
{ return new KSBoard(graphic, tqparent); } { return new KSBoard(graphic, parent); }
virtual BaseField *createField(TQWidget *tqparent) virtual BaseField *createField(TQWidget *parent)
{ return new KSField(tqparent); } { return new KSField(parent); }
virtual BaseInterface *createInterface(TQWidget *tqparent); virtual BaseInterface *createInterface(TQWidget *parent);
virtual AI *createAI() { return new KSAI; } virtual AI *createAI() { return new KSAI; }
virtual TQWidget *createGameConfig() { return new KSGameConfig; } virtual TQWidget *createGameConfig() { return new KSGameConfig; }
}; };

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

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

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

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

@ -31,7 +31,7 @@ this software.
class MirrorWidget : public TQFrame { class MirrorWidget : public TQFrame {
public: public:
MirrorWidget(TQPixmap *s, bool *game, bool *pause, 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 setBackgroundSprite(Sprite s) { bg_sprite = s; }
void setMirrorSprites(Sprite *s) { mirror_sprites = s; } void setMirrorSprites(Sprite *s) { mirror_sprites = s; }

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

@ -31,7 +31,7 @@ this software.
class NextPieceWidget : public TQFrame { class NextPieceWidget : public TQFrame {
public: public:
NextPieceWidget(TQPixmap *s, bool *game, bool *pause, 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 setBackgroundSprite(Sprite s) { bg_sprite = s; }
void setNextPieceSprites(Sprite *s) { next_piece_sprites = s; } void setNextPieceSprites(Sprite *s) { next_piece_sprites = s; }

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

@ -31,7 +31,7 @@ this software.
class ScreenWidget : public TQFrame { class ScreenWidget : public TQFrame {
public: public:
ScreenWidget(TQPixmap *s, bool *game, bool *pause, 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 setBackgroundSprite(Sprite s) { bg_sprite = s; }
void setScreenSprites(Sprite *s) { screen_sprites = s; } void setScreenSprites(Sprite *s) { screen_sprites = s; }

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

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

@ -54,7 +54,7 @@
#define SCORE 1 #define SCORE 1
#define LIVES 2 #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 // create statusbar
statusBar()->insertItem(i18n("Score: 0"), SCORE); statusBar()->insertItem(i18n("Score: 0"), SCORE);

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

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

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

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

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

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

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

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

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

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

@ -26,14 +26,14 @@ class ModalLabel : public TQLabel {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
static void message (const TQString &text, TQWidget *tqparent); static void message (const TQString &text, TQWidget *parent);
void timerEvent (TQTimerEvent *); void timerEvent (TQTimerEvent *);
bool eventFilter (TQObject *, TQEvent *); bool eventFilter (TQObject *, TQEvent *);
bool completed_; bool completed_;
protected: 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" #include "PlayField.moc"
PlayField::PlayField(TQWidget *tqparent, const char *name, WFlags f) PlayField::PlayField(TQWidget *parent, const char *name, WFlags f)
: TQWidget(tqparent, name, f|WResizeNoErase), imageData_(0), lastLevel_(-1), : TQWidget(parent, name, f|WResizeNoErase), imageData_(0), lastLevel_(-1),
moveSequence_(0), moveInProgress_(false), dragInProgress_(false), moveSequence_(0), moveInProgress_(false), dragInProgress_(false),
xOffs_(0), yOffs_(0), xOffs_(0), yOffs_(0),
wheelDelta_(0), wheelDelta_(0),

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

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

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

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

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

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

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

@ -42,7 +42,7 @@
/** /**
* Constuctor * 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; playerPoints[0]=playerPoints[1]=0;
tron=new Tron(this, "Tron"); tron=new Tron(this, "Tron");

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

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

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

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

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

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

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

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

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

@ -37,7 +37,7 @@ class KSprite;
public: public:
KSpriteNotify() :TQObject(0,0) {mRefCnt=0;} 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 incRefCnt() {mRefCnt++;}
void decRefCnt() {mRefCnt--;} void decRefCnt() {mRefCnt--;}
int refCnt() {return 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 * 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. * animation is finished.
* Example: * Example:
* <pre> * <pre>
@ -244,17 +244,17 @@ class KSprite : public TQCanvasSprite
* *
* Example: * Example:
* <pre> * <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 * # z position given but x,y set manually in the program
* [arrow] * [arrow]
* file=arrow%d.png * file=arrow%d.png
* tqmask=arrow_tqmask.png * mask=arrow_mask.png
* number=3 * number=3
* offset=19,5 * offset=19,5
* rtti=32 * rtti=32
* z=9.0 * 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] * [board]
* file=board.png * file=board.png
* rtti=32 * rtti=32
@ -267,7 +267,7 @@ class KSprite : public TQCanvasSprite
* [star] * [star]
* anim0=0,4,2,8 * anim0=0,4,2,8
* file=star%d.png * file=star%d.png
* tqmask=star%d_tqmask.png * mask=star%d_mask.png
* number=5 * number=5
* offset=19,20 * offset=19,20
* rtti=32 * rtti=32
@ -293,7 +293,7 @@ class KSpriteCache : public TQObject
* *
* @param grafixdir - the directory where the configuration file and the graphics reside * @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 * 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 * 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 * 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 * 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 * number=(int) : how many frames to generate
* file=(Qstring) : the filename to load (can contain printf format args * file=(Qstring) : the filename to load (can contain printf format args
* as %d which are replaced, e.g. file=hello_%d.png * 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) * 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) * 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 * colorfilter=1,h,s,v: make a HSV transform of all sprite images

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

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

@ -36,7 +36,7 @@
#include "prefs.h" #include "prefs.h"
#include "statuswidget.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 *)), connect(this,TQT_SIGNAL(signalPropertyChanged(KGamePropertyBase *,KGame *)),
this,TQT_SLOT(slotPropertyChanged(KGamePropertyBase *,KGame *))); this,TQT_SLOT(slotPropertyChanged(KGamePropertyBase *,KGame *)));

@ -51,7 +51,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Kwin4Doc(TQWidget *tqparent, const char *name=0); Kwin4Doc(TQWidget *parent, const char *name=0);
~Kwin4Doc(); ~Kwin4Doc();
/** adds a view to the document which represents the document contents. Usually this is your main view. */ /** 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) Kwin4View::Kwin4View(Kwin4Doc *theDoc, TQWidget *parent, const char *name)
: TQCanvasView(0,tqparent, name), doc(theDoc) : TQCanvasView(0,parent, name), doc(theDoc)
{ {
mLastArrow=-1; mLastArrow=-1;
@ -129,8 +129,8 @@ Kwin4View::Kwin4View(Kwin4Doc *theDoc, TQWidget *tqparent, const char *name)
//setBackgroundMode(PaletteBase); //setBackgroundMode(PaletteBase);
setBackgroundColor(TQColor(0,0,128)); setBackgroundColor(TQColor(0,0,128));
mCanvas=new TQCanvas(TQT_TQOBJECT(tqparent)); mCanvas=new TQCanvas(TQT_TQOBJECT(parent));
mCanvas->resize(tqparent->width(),tqparent->height()); mCanvas->resize(parent->width(),parent->height());
mCanvas->setDoubleBuffering(true); mCanvas->setDoubleBuffering(true);
mCanvas->setBackgroundColor(TQColor(0,0,128)); mCanvas->setBackgroundColor(TQColor(0,0,128));
setCanvas(mCanvas); setCanvas(mCanvas);

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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 initView(bool deleteall=true);
void drawBoard(bool remove=false); void drawBoard(bool remove=false);

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

@ -14,7 +14,7 @@ class ScoreWidget : public TQFrame
TQ_OBJECT TQ_OBJECT
public: 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 setMove(int i);
void setLevel(int i); void setLevel(int i);
void setChance(int i); void setChance(int i);

@ -44,19 +44,19 @@ void setGameType(uint type)
internal->setGameType(type); internal->setGameType(type);
} }
bool configure(TQWidget *tqparent) bool configure(TQWidget *parent)
{ {
internal->checkFirst(); internal->checkFirst();
ConfigDialog *cd = new ConfigDialog(tqparent); ConfigDialog *cd = new ConfigDialog(parent);
cd->exec(); cd->exec();
bool saved = cd->hasBeenSaved(); bool saved = cd->hasBeenSaved();
delete cd; delete cd;
return saved; 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(); hd->exec();
delete hd; delete hd;
} }

@ -51,17 +51,17 @@ KDE_EXPORT void setGameType(uint gameType);
* Configure the highscores. * Configure the highscores.
* @return true if the configuration has been modified and saved * @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. * 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. * 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); 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) ScoresList::ScoresList(TQWidget *parent)
: KListView(tqparent) : KListView(parent)
{ {
setSelectionMode(TQListView::NoSelection); setSelectionMode(TQListView::NoSelection);
setItemMargin(3); setItemMargin(3);
@ -99,8 +99,8 @@ void ScoresList::addLineItem(const ItemArray &items,
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
HighscoresList::HighscoresList(TQWidget *tqparent) HighscoresList::HighscoresList(TQWidget *parent)
: ScoresList(tqparent) : ScoresList(parent)
{} {}
TQString HighscoresList::itemText(const ItemContainer &item, uint row) const 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) HighscoresWidget::HighscoresWidget(TQWidget *parent)
: TQWidget(tqparent, "show_highscores_widget"), : TQWidget(parent, "show_highscores_widget"),
_scoresUrl(0), _playersUrl(0), _statsTab(0), _histoTab(0) _scoresUrl(0), _playersUrl(0), _statsTab(0), _histoTab(0)
{ {
const ScoreInfos &s = internal->scoreInfos(); 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, : KDialogBase(internal->nbGameTypes()>1 ? TreeList : Plain,
i18n("Highscores"), Close|User1|User2, Close, i18n("Highscores"), Close|User1|User2, Close,
tqparent, "show_highscores", true, true, parent, "show_highscores", true, true,
KGuiItem(i18n("Configure..."), "configure"), KGuiItem(i18n("Configure..."), "configure"),
KGuiItem(i18n("Export..."))), _rank(rank), _tab(0) KGuiItem(i18n("Export..."))), _rank(rank), _tab(0)
{ {
@ -270,8 +270,8 @@ void HighscoresDialog::slotUser2()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
LastMultipleScoresList::LastMultipleScoresList( LastMultipleScoresList::LastMultipleScoresList(
const TQValueVector<Score> &scores, TQWidget *tqparent) const TQValueVector<Score> &scores, TQWidget *parent)
: ScoresList(tqparent), _scores(scores) : ScoresList(parent), _scores(scores)
{ {
const ScoreInfos &s = internal->scoreInfos(); const ScoreInfos &s = internal->scoreInfos();
addHeader(s); addHeader(s);
@ -307,8 +307,8 @@ TQString LastMultipleScoresList::itemText(const ItemContainer &item,
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
TotalMultipleScoresList::TotalMultipleScoresList( TotalMultipleScoresList::TotalMultipleScoresList(
const TQValueVector<Score> &scores, TQWidget *tqparent) const TQValueVector<Score> &scores, TQWidget *parent)
: ScoresList(tqparent), _scores(scores) : ScoresList(parent), _scores(scores)
{ {
const ScoreInfos &s = internal->scoreInfos(); const ScoreInfos &s = internal->scoreInfos();
addHeader(s); 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"), : KDialogBase(Swallow, i18n("Configure Highscores"),
Ok|Apply|Cancel, Cancel, Ok|Apply|Cancel, Cancel,
tqparent, "configure_highscores", true, true), parent, "configure_highscores", true, true),
_saved(false), _WWHEnabled(0) _saved(false), _WWHEnabled(0)
{ {
TQWidget *page = 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, : KDialogBase(Plain, i18n("Enter Your Nickname"), Ok | Cancel, Ok,
tqparent, "ask_name_dialog") parent, "ask_name_dialog")
{ {
internal->hsConfig().readCurrentConfig(); internal->hsConfig().readCurrentConfig();

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

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

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

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

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

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

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

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

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

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

@ -57,10 +57,10 @@ public:
/** /**
* @param fields Which fields should be listed. * @param fields Which fields should be listed.
* @param tqparent passed to tqparent TQWidget constructor * @param parent passed to parent TQWidget constructor
* @param name passed to tqparent 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(); ~KScoreDialog();

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

@ -104,11 +104,11 @@ public:
/** /**
* Constructs a card deck selection dialog. * 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 name The name of the dialog.
* @param flags Specifies whether the dialog is modal or not. * @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); CardFlags flags = Both);
/** /**
* Destructs a card deck selection dialog. * Destructs a card deck selection dialog.
@ -126,7 +126,7 @@ public:
* @param carddir a reference to the directory name used as front of the * @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 * 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 * @param flags what to show
* *
@ -154,7 +154,7 @@ public:
* *
* @return TQDialog::result(). * @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, CardFlags flags=Both, bool* randomDeck=0,
bool* randomCardDir=0, double* scale=0, KConfig* conf=0); bool* randomCardDir=0, double* scale=0, KConfig* conf=0);

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

@ -39,12 +39,12 @@ class KDE_EXPORT KChat : public KChatBase
TQ_OBJECT TQ_OBJECT
public: 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 * @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 * 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. * as you will hardly need it in 2-player games.
**/ **/
KChat(TQWidget* tqparent, bool twoPlayerGame = false); KChat(TQWidget* parent, bool twoPlayerGame = false);
virtual ~KChat(); virtual ~KChat();

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

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

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

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

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

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

@ -120,9 +120,9 @@ public:
KListBox* mHideIdList; 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, KDialogBase(Tabbed, i18n("KGame Debug Dialog"), Close, Close,
tqparent, 0, modal, true) parent, 0, modal, true)
{ {
d = new KGameDebugDialogPrivate; d = new KGameDebugDialogPrivate;

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

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

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

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

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

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

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

@ -81,7 +81,7 @@ public:
}; };
// ------------------- GAME CLASS -------------------------- // ------------------- 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; kdDebug(11001) << k_funcinfo << " - " << this << ", sizeof(KGame)=" << sizeof(KGame) << endl;
d = new KGamePrivate; d = new KGamePrivate;

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

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

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

@ -117,21 +117,21 @@ void KGameIO::Debug()
// ----------------------- Key IO --------------------------- // ----------------------- Key IO ---------------------------
KGameKeyIO::KGameKeyIO(TQWidget *tqparent) KGameKeyIO::KGameKeyIO(TQWidget *parent)
: KGameIO() : KGameIO()
{ {
if (tqparent) if (parent)
{ {
kdDebug(11001) << "Key Event filter installed" << endl; kdDebug(11001) << "Key Event filter installed" << endl;
tqparent->installEventFilter(this); parent->installEventFilter(this);
} }
} }
KGameKeyIO::~KGameKeyIO() 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 --------------------------- // ----------------------- Mouse IO ---------------------------
KGameMouseIO::KGameMouseIO(TQWidget *tqparent,bool trackmouse) KGameMouseIO::KGameMouseIO(TQWidget *parent,bool trackmouse)
: KGameIO() : KGameIO()
{ {
if (tqparent) if (parent)
{ {
kdDebug(11001) << "Mouse Event filter installed tracking=" << trackmouse << endl; kdDebug(11001) << "Mouse Event filter installed tracking=" << trackmouse << endl;
tqparent->installEventFilter(this); parent->installEventFilter(this);
tqparent->setMouseTracking(trackmouse); parent->setMouseTracking(trackmouse);
} }
} }
KGameMouseIO::~KGameMouseIO() 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) 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 *))); * this,TQT_SLOT(slotKeyInput(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)));
* \endcode * \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(); virtual ~KGameKeyIO();
/** /**
@ -265,10 +265,10 @@ public:
* this,TQT_SLOT(slotMouseInput(KGameIO *,TQDataStream &,TQMouseEvent *,bool *))); * this,TQT_SLOT(slotMouseInput(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)));
* \endcode * \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) * @param trackmouse enables mouse tracking (gives mouse move events)
*/ */
KGameMouseIO(TQWidget *tqparent,bool trackmouse=false); KGameMouseIO(TQWidget *parent,bool trackmouse=false);
virtual ~KGameMouseIO(); virtual ~KGameMouseIO();
/** /**

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

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

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

@ -125,8 +125,8 @@ public:
**/ **/
KGamePropertyBase(int id, KGamePropertyHandler* owner); KGamePropertyBase(int id, KGamePropertyHandler* owner);
KGamePropertyBase(int id, KGame* tqparent); KGamePropertyBase(int id, KGame* parent);
KGamePropertyBase(int id, KPlayer* tqparent); KGamePropertyBase(int id, KPlayer* parent);
/** /**
* Creates a KGamePropertyBase object without an owner. Remember to call * Creates a KGamePropertyBase object without an owner. Remember to call
@ -344,7 +344,7 @@ protected:
bool sendProperty(const TQByteArray& b); 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(); void emitSignal();
@ -413,7 +413,7 @@ private:
* property. This is achieved by using send to change the value of the * property. This is achieved by using send to change the value of the
* property. send needs a running KMessageServer and therefore * property. send needs a running KMessageServer and therefore
* <em>MUST</em> be plugged into a KGamePropertyHandler using either * <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 * 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 * 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 * 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 * @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 * receive changes in the property of the playere automatically via
* network. * 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. * 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 * Note that in contrast to most KDE/QT classes KGameProperty objects
* are <em>not</em> deleted automatically! * 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(); } KGameProperty(int id, KGamePropertyHandler* owner) : KGamePropertyBase(id, owner) { init(); }
/** /**
@ -651,7 +651,7 @@ public:
* \endcode * \endcode
* as myProperty has not yet been set when doSomething is being called. * 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 * the property which can be deactivated by setEmittingSignal because of
* performance (you probably don't have to deactivate it - except you * 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 * want to write a real-time game like Command&Conquer with a lot of

@ -51,13 +51,13 @@ public:
TQPtrQueue<KGamePropertyBase> mSignalQueue; 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(); init();
registerHandler(id,receiver,sendf,emitf); registerHandler(id,receiver,sendf,emitf);
} }
KGamePropertyHandler::KGamePropertyHandler(TQObject* tqparent) : TQObject(tqparent) KGamePropertyHandler::KGamePropertyHandler(TQObject* parent) : TQObject(parent)
{ {
init(); init();
} }

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

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

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

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

@ -62,7 +62,7 @@ public:
/** /**
* The usual TQObject constructor, does nothing else. * 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. * 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 If the connection could not be established (e.g. unknown host or no server
socket at this port), the signal /e connectionBroken is emitted. 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); const char *name = 0);
/** /**
@ -194,7 +194,7 @@ public:
If the connection could not be established (e.g. unknown host or no server If the connection could not be established (e.g. unknown host or no server
socket at this port), the signal /e connectionBroken is emitted. 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); const char *name = 0);
/** /**
@ -205,10 +205,10 @@ public:
Note: The /e socket object is then owned by the /e KMessageSocket object. 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 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.) 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 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 manipulate the socket afterwards, especially don't close it. The socket is
automatically closed when KMessageSocket is deleted. 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. Destructor, closes the socket.
@ -307,7 +307,7 @@ public:
If that object is already connected, the object remains unconnected. 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); *name = 0);
/** /**
@ -354,7 +354,7 @@ class KMessageProcess : public KMessageIO
TQ_OBJECT TQ_OBJECT
public: public:
KMessageProcess(TQObject *tqparent, TQString file); KMessageProcess(TQObject *parent, TQString file);
~KMessageProcess(); ~KMessageProcess();
bool isConnected() const; bool isConnected() const;
void send (const TQByteArray &msg); void send (const TQByteArray &msg);
@ -393,7 +393,7 @@ class KMessageFilePipe : public KMessageIO
TQ_OBJECT TQ_OBJECT
public: public:
KMessageFilePipe(TQObject *tqparent,TQFile *readFile,TQFile *writeFile); KMessageFilePipe(TQObject *parent,TQFile *readFile,TQFile *writeFile);
~KMessageFilePipe(); ~KMessageFilePipe();
bool isConnected() const; bool isConnected() const;
void send (const TQByteArray &msg); void send (const TQByteArray &msg);

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

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

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

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

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

@ -71,18 +71,18 @@ public:
/** /**
* Construct a horizontal progress bar. * 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. * 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. * Construct a progress bar with minimum, maximum and initial values.
*/ */
KGameProgress(int minValue, int maxValue, int value, Qt::Orientation, 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. * Destruct the progress bar.

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

@ -79,15 +79,15 @@ public:
*/ */
static KAction* create( StdGameAction id, const char *name, static KAction* create( StdGameAction id, const char *name,
const TQObject *recvr, const char *slot, const TQObject *recvr, const char *slot,
KActionCollection* tqparent ); KActionCollection* parent );
/** /**
* @since 3.2 * @since 3.2
*/ */
static KAction* create( StdGameAction id, static KAction* create( StdGameAction id,
const TQObject *recvr, const char *slot, const TQObject *recvr, const char *slot,
KActionCollection* tqparent ) KActionCollection* parent )
{ return create( id, 0, recvr, slot, tqparent ); } { return create( id, 0, recvr, slot, parent ); }
/** /**
@ -96,7 +96,7 @@ public:
* @deprecated * @deprecated
*/ */
static KAction *action(StdGameAction act_enum, const TQObject *recvr = 0, 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 ); const char *name = 0L );
/** /**
@ -115,43 +115,43 @@ public:
* Start a new game * Start a new game
**/ **/
static KAction *gameNew(const TQObject *recvr = 0, const char *slot = 0, 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 * Load a previousely saved game
*/ */
static KAction *load(const TQObject *recvr = 0, const char *slot = 0, 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. * Load a recently loaded game.
*/ */
static KRecentFilesAction *loadRecent(const TQObject *recvr = 0, const char *slot = 0, 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. * Save the current game.
*/ */
static KAction *save(const TQObject *recvr = 0, const char *slot = 0, 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. * Save the current game under a different filename.
*/ */
static KAction *saveAs(const TQObject *recvr = 0, const char *slot = 0, 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 * Pause the game
**/ **/
static KToggleAction *pause(const TQObject *recvr = 0, const char *slot = 0, 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. * Show the highscores.
*/ */
static KAction *highscores(const TQObject *recvr = 0, const char *slot = 0, 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. * entry.
*/ */
static KAction *end(const TQObject *recvr = 0, const char *slot = 0, 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 * Print the current screen? Game? Whatever - hardly used in games but there
* is at least one example (ktuberling) * is at least one example (ktuberling)
*/ */
static KAction *print(const TQObject *recvr = 0, const char *slot = 0, 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. * Quit the game.
*/ */
static KAction *quit(const TQObject *recvr = 0, const char *slot = 0, 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. * Repeat the last move.
**/ **/
static KAction *repeat(const TQObject *recvr = 0, const char *slot = 0, 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 * Undo the last move
**/ **/
static KAction *undo(const TQObject *recvr = 0, const char *slot = 0, 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) * Redo the last move (which has been undone)
**/ **/
static KAction *redo(const TQObject *recvr = 0, const char *slot = 0, 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 * Roll die or dice
**/ **/
static KAction *roll(const TQObject *recvr = 0, const char *slot = 0, 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 * End the current turn (not the game). Usually to let the next player
* start * start
**/ **/
static KAction *endTurn(const TQObject *recvr = 0, const char *slot = 0, 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. * Display configure carddecks dialog.
*/ */
static KAction *carddecks(const TQObject *recvr = 0, const char *slot = 0, 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. * Display configure highscores dialog.
* @since 3.2 * @since 3.2
*/ */
static KAction *configureHighscores(const TQObject *recvr = 0, const char *slot = 0, 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. * Give an advice/hint.
* @since 3.2 * @since 3.2
*/ */
static KAction *hint(const TQObject *recvr = 0, const char *slot = 0, 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. * Show a demo.
* @since 3.2 * @since 3.2
*/ */
static KToggleAction *demo(const TQObject *recvr = 0, const char *slot = 0, 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. * Solve the game.
* @since 3.2 * @since 3.2
*/ */
static KAction *solve(const TQObject *recvr = 0, const char *slot = 0, 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. * Choose game type.
* @since 3.2 * @since 3.2
*/ */
static KSelectAction *chooseGameType(const TQObject *recvr = 0, const char *slot = 0, 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. * Restart game.
* @since 3.2 * @since 3.2
*/ */
static KAction *restart(const TQObject *recvr = 0, const char *slot = 0, 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; using namespace KGrid2D;
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
FixedCanvasView::FixedCanvasView(TQWidget *tqparent, const char *name) FixedCanvasView::FixedCanvasView(TQWidget *parent, const char *name)
: TQCanvasView(tqparent, name, WNoAutoErase) : TQCanvasView(parent, name, WNoAutoErase)
{} {}
TQSize FixedCanvasView::tqsizeHint() const TQSize FixedCanvasView::tqsizeHint() const
@ -35,8 +35,8 @@ const BaseBoard::DirectionData BaseBoard::DIRECTION_DATA[Nb_Direction] = {
{ SquareBase::Up, Down } { SquareBase::Up, Down }
}; };
BaseBoard::BaseBoard(bool graphic, TQWidget *tqparent) BaseBoard::BaseBoard(bool graphic, TQWidget *parent)
: FixedCanvasView(tqparent, "board"), : FixedCanvasView(parent, "board"),
GenericTetris(bfactory->bbi.width, bfactory->bbi.height, GenericTetris(bfactory->bbi.width, bfactory->bbi.height,
bfactory->bbi.withPieces, graphic), bfactory->bbi.withPieces, graphic),
state(GameOver), timer(this), sequences(0), main(0), _next(0), state(GameOver), timer(this), sequences(0), main(0), _next(0),

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

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

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

@ -22,7 +22,7 @@ class KDE_EXPORT BaseField
virtual ~BaseField() {} virtual ~BaseField() {}
virtual KExtHighscore::Score currentScore() const = 0; 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(); virtual void setArcade();
bool isArcade() const; bool isArcade() const;

@ -3,13 +3,13 @@
#include <kexthighscore.h> #include <kexthighscore.h>
void BaseInterface::showHighscores(TQWidget *tqparent) void BaseInterface::showHighscores(TQWidget *parent)
{ {
if ( !_isPaused() ) _pause(); 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 void _pause() = 0;
virtual bool _isPaused() const = 0; virtual bool _isPaused() const = 0;
void showHighscores(TQWidget *tqparent); void showHighscores(TQWidget *parent);
protected: protected:
virtual void _showHighscores(TQWidget *tqparent); virtual void _showHighscores(TQWidget *parent);
}; };
#endif #endif

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

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

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

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

@ -20,7 +20,7 @@ class LIBKSIRTET_EXPORT Field : public MPSimpleBoard, public BaseField
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Field(TQWidget *tqparent); Field(TQWidget *parent);
public slots: public slots:
void moveLeft(); 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 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) Interface::Interface(const MPGameInfo &gi, TQWidget *parent)
: MPSimpleInterface(gi, Nb_Actions, ACTION_DATA, tqparent) : MPSimpleInterface(gi, Nb_Actions, ACTION_DATA, parent)
{ {
setDefaultKeycodes(1, 0, KEYCODE_ONE); setDefaultKeycodes(1, 0, KEYCODE_ONE);
setDefaultKeycodes(2, 0, KEYCODE_TWO); 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); if ( !server() || nbPlayers()!=1 ) _scores.show(parent);
else BaseInterface::_showHighscores(tqparent); else BaseInterface::_showHighscores(parent);
} }
void Interface::_showGameOverData() void Interface::_showGameOverData()

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

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

@ -16,7 +16,7 @@ class LIBKSIRTET_EXPORT ShowNextPiece : public FixedCanvasView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ShowNextPiece(BaseBoard *, TQWidget *tqparent); ShowNextPiece(BaseBoard *, TQWidget *parent);
}; };
/*****************************************************************************/ /*****************************************************************************/
@ -25,7 +25,7 @@ class LIBKSIRTET_EXPORT Shadow : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Shadow(BaseBoard *, TQWidget *tqparent); Shadow(BaseBoard *, TQWidget *parent);
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;
virtual TQSizePolicy sizePolicy() const; virtual TQSizePolicy sizePolicy() const;
@ -47,7 +47,7 @@ class LIBKSIRTET_EXPORT GiftPool : public TQHBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
GiftPool(TQWidget *tqparent); GiftPool(TQWidget *parent);
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;
virtual TQSizePolicy sizePolicy() const; virtual TQSizePolicy sizePolicy() const;
@ -73,7 +73,7 @@ class LIBKSIRTET_EXPORT PlayerProgress : public KGameProgress
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: 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 TQSize tqsizeHint() const;
virtual TQSizePolicy sizePolicy() const; virtual TQSizePolicy sizePolicy() const;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -12,7 +12,7 @@ class MPSimpleInterface : public MPInterface
public: public:
MPSimpleInterface(const MPGameInfo &gi, MPSimpleInterface(const MPGameInfo &gi,
uint nbActions, const ActionData *data, 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; } bool isPaused() const { return state==SS_Pause; }

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

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

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

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

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

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

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

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

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

@ -36,7 +36,7 @@
TQPtrList<LSkatView> *LSkatDoc::pViewList = 0L; 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; int i;
if(!pViewList) if(!pViewList)

@ -50,7 +50,7 @@ class LSkatDoc : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
/** Constructor for the fileclass of the application */ /** 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 */ /** Destructor for the fileclass of the application */
~LSkatDoc(); ~LSkatDoc();

@ -104,7 +104,7 @@
#define MOVECOUNTER 20 // so many moves when playing card #define MOVECOUNTER 20 // so many moves when playing card
#define MOVE_TIMER_DELAY 7 // timer in milllisec default 7 #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(PaletteBase);
// setBackgroundMode(NoBackground); // setBackgroundMode(NoBackground);

@ -42,9 +42,9 @@ class LSkatView : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
/** Constructor for the main view */ /** 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. * widget to get to the window document pointer by calling the LSkatApp::getDocument() method.
* *
* @see LSkatApp#getDocument * @see LSkatApp#getDocument

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

@ -26,7 +26,7 @@ class MsgDlg : public TQDialog
TQ_OBJECT TQ_OBJECT
public: 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(); TQString GetMsg();
protected slots: protected slots:

@ -19,15 +19,15 @@
#define NAME_MAX_LEN 12 #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' * name 'name' and widget flags set to 'f'
* *
* The dialog will by default be modeless, unless you set 'modal' to * The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog. * TRUE to construct a modal dialog.
*/ */
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, : KDialogBase( Plain, i18n("Configure Names"), Ok|Cancel, Ok,
tqparent, name, true,true ) parent, name, true,true )
{ {
TQWidget *page = plainPage(); TQWidget *page = plainPage();

@ -24,7 +24,7 @@ class NameDlg : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: 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(); ~NameDlg();
void SetNames(TQString n1,TQString n2); void SetNames(TQString n1,TQString n2);
void GetNames(TQString &n1,TQString &n2); void GetNames(TQString &n1,TQString &n2);

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

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

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

Loading…
Cancel
Save