rename the following methods:

tqparent parent
tqmask mask


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

@ -18,7 +18,7 @@
#include "accel.moc" #include "accel.moc"
#include <klocale.h> #include <klocale.h>
Accel::Accel( TQWidget *tqparent, TQObject *target ) : KAccel( tqparent ) Accel::Accel( TQWidget *parent, TQObject *target ) : KAccel( parent )
{ {
insertItem( i18n("Previous Move"), "Previous Move", Key_Up, TRUE ); insertItem( i18n("Previous Move"), "Previous Move", Key_Up, TRUE );
insertItem( i18n("Next Move"), "Next Move", Key_Down, TRUE ); insertItem( i18n("Next Move"), "Next Move", Key_Down, TRUE );

@ -30,7 +30,7 @@ class Accel : public KAccel
TQ_OBJECT TQ_OBJECT
public: public:
Accel( TQWidget *tqparent=0, TQObject *target=0 ); Accel( TQWidget *parent=0, TQObject *target=0 );
~Accel(); ~Accel();
void setTarget( TQObject* ); void setTarget( TQObject* );

@ -25,7 +25,7 @@
static int MAX_STEPS = 18; static int MAX_STEPS = 18;
board_2d::board_2d(TQWidget *tqparent, const char *name, resource *Rsrc, logic *Lgc ) : board_base(tqparent,name,Rsrc,Lgc) board_2d::board_2d(TQWidget *parent, const char *name, resource *Rsrc, logic *Lgc ) : board_base(parent,name,Rsrc,Lgc)
{ {
updateX1 = updateY1 = 4000; updateX1 = updateY1 = 4000;
updateX2 = updateY2 = -4000; updateX2 = updateY2 = -4000;

@ -49,7 +49,7 @@ class board_2d : public board_base
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
board_2d(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0, logic *Lgc=0); board_2d(TQWidget *parent=0, const char *name=0, resource *Rsrc=0, logic *Lgc=0);
~board_2d(); ~board_2d();
virtual void drawMove( const ChessMove &chessMove, const bool &reverse=FALSE ); virtual void drawMove( const ChessMove &chessMove, const bool &reverse=FALSE );
virtual void setPremovePositions( const int&, const int& ); virtual void setPremovePositions( const int&, const int& );

@ -19,7 +19,7 @@
#include "resource.h" #include "resource.h"
#include "logic.h" #include "logic.h"
board_base::board_base(TQWidget *tqparent, const char *name, resource *Rsrc, logic *Lgc ) : TQWidget(tqparent,name) board_base::board_base(TQWidget *parent, const char *name, resource *Rsrc, logic *Lgc ) : TQWidget(parent,name)
{ {
/* Setup Variables */ /* Setup Variables */
myResource = Rsrc; myResource = Rsrc;

@ -35,7 +35,7 @@ class board_base : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
board_base(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0, logic *Lgc=0); board_base(TQWidget *parent=0, const char *name=0, resource *Rsrc=0, logic *Lgc=0);
virtual ~board_base(); virtual ~board_base();
virtual void drawMove( const ChessMove &chessMove, const bool &reverse=FALSE ); virtual void drawMove( const ChessMove &chessMove, const bool &reverse=FALSE );
virtual void setPremovePositions( const int&, const int& ); virtual void setPremovePositions( const int&, const int& );

@ -50,8 +50,8 @@
// Challenge_Graph::Constructor // Challenge_Graph::Constructor
// //
/////////////////////////////////////// ///////////////////////////////////////
Challenge_Graph::Challenge_Graph( TQWidget* tqparent, const char* name, resource *Rsrc ) Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *Rsrc )
: TQVBox(tqparent, name), myResource(Rsrc) : TQVBox(parent, name), myResource(Rsrc)
{ {
max_rating = 2600; max_rating = 2600;
max_time = 60; max_time = 60;

@ -38,7 +38,7 @@ class Challenge_Graph : public TQVBox
TQ_OBJECT TQ_OBJECT
public: public:
Challenge_Graph(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); Challenge_Graph(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
virtual ~Challenge_Graph(); virtual ~Challenge_Graph();
void resizeEvent( TQResizeEvent* ); void resizeEvent( TQResizeEvent* );
void add( Challenge_Game *seek ); void add( Challenge_Game *seek );

@ -29,14 +29,14 @@
// Challenge_Graph_View::Constructor // Challenge_Graph_View::Constructor
// //
/////////////////////////////////////// ///////////////////////////////////////
Challenge_Graph_View::Challenge_Graph_View(TQCanvas& c, TQWidget * tqparent,const char* name, WFlags f, TQLabel *qsb) Challenge_Graph_View::Challenge_Graph_View(TQCanvas& c, TQWidget * parent,const char* name, WFlags f, TQLabel *qsb)
: TQCanvasView(&c,tqparent,name,f), canvas(c), statusbar(qsb) : TQCanvasView(&c,parent,name,f), canvas(c), statusbar(qsb)
{ {
setHScrollBarMode( TQScrollView::AlwaysOff ); setHScrollBarMode( TQScrollView::AlwaysOff );
setVScrollBarMode( TQScrollView::AlwaysOff ); setVScrollBarMode( TQScrollView::AlwaysOff );
if ( tqparent ) if ( parent )
tqparent->installEventFilter( this ); parent->installEventFilter( this );
TQScrollView::viewport()->setMouseTracking(true); TQScrollView::viewport()->setMouseTracking(true);
} }
/////////////////////////////////////// ///////////////////////////////////////

@ -30,7 +30,7 @@ class Challenge_Graph_View : public TQCanvasView
TQ_OBJECT TQ_OBJECT
public: public:
Challenge_Graph_View(TQCanvas&, TQWidget* tqparent=0, const char* name=0, WFlags f=0, TQLabel *qsb=0); Challenge_Graph_View(TQCanvas&, TQWidget* parent=0, const char* name=0, WFlags f=0, TQLabel *qsb=0);
~Challenge_Graph_View(); ~Challenge_Graph_View();
void reset(); void reset();

@ -18,7 +18,7 @@
#include "chessclock.moc" #include "chessclock.moc"
#include "audio.h" #include "audio.h"
chessclock::chessclock(TQWidget *tqparent, const char *name, resource *Rsrc ) : TQWidget(tqparent,name) chessclock::chessclock(TQWidget *parent, const char *name, resource *Rsrc ) : TQWidget(parent,name)
{ {
Resource = Rsrc; Resource = Rsrc;
Silent = TRUE; Silent = TRUE;

@ -35,7 +35,7 @@ class chessclock : public TQWidget
public: public:
chessclock( TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0 ); chessclock( TQWidget *parent=0, const char *name=0, resource *Rsrc=0 );
~chessclock(); ~chessclock();
/* The Set function accepts Centiseconds ( 1/100 second ) */ /* The Set function accepts Centiseconds ( 1/100 second ) */

@ -26,9 +26,9 @@
#include <tqregexp.h> #include <tqregexp.h>
#include <tqstyle.h> #include <tqstyle.h>
Console::Console(TQWidget *tqparent, Console::Console(TQWidget *parent,
const char *name, const char *name,
resource *Rsrc ) : TQVBox(tqparent,name) resource *Rsrc ) : TQVBox(parent,name)
{ {
myResource = Rsrc; myResource = Rsrc;
SelfMoving = FALSE; SelfMoving = FALSE;

@ -47,7 +47,7 @@ class Console : public TQVBox
Down = 0 Down = 0
}; };
Console(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); Console(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
~Console(); ~Console();
void buildAccel( void ); void buildAccel( void );

@ -39,7 +39,7 @@
// core::core // core::core
// //
/////////////////////////////////////// ///////////////////////////////////////
core::core(TQWidget *tqparent, const char *name, resource *Rsrc ) : TQWidget(tqparent,name) core::core(TQWidget *parent, const char *name, resource *Rsrc ) : TQWidget(parent,name)
{ {
myResource = Rsrc; myResource = Rsrc;
listPGN = NULL; listPGN = NULL;

@ -43,7 +43,7 @@ class core : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
core(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); core(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
~core(); ~core();
TQStringList* notation( void ); TQStringList* notation( void );
TQString caption( void ); TQString caption( void );

@ -50,7 +50,7 @@ const int PLAYEREMAIL = 0x01; // Email Opponent
const int PLAYERTCP = 0x02; // Internet Chess Engine const int PLAYERTCP = 0x02; // Internet Chess Engine
const int PLAYERLOAD = 0x03; // Load from PGN const int PLAYERLOAD = 0x03; // Load from PGN
/* Add a tqmask of 0x10 to players that accept user input */ /* Add a mask of 0x10 to players that accept user input */
const int PLAYERLOCAL = 0x10; // Human sitting at the PC const int PLAYERLOCAL = 0x10; // Human sitting at the PC
const int PLAYEREXAMINE = 0x11; // ICS Examine Mode const int PLAYEREXAMINE = 0x11; // ICS Examine Mode

@ -18,8 +18,8 @@
#include <tqregexp.h> #include <tqregexp.h>
#include "dlg_challenge.moc" #include "dlg_challenge.moc"
dlg_challenge::dlg_challenge(TQWidget *tqparent, const char *name, resource *Rsrc ) : dlg_challenge::dlg_challenge(TQWidget *parent, const char *name, resource *Rsrc ) :
KDialogBase( tqparent, KDialogBase( parent,
name, name,
FALSE, FALSE,
i18n("You've Been Challenged:"), i18n("You've Been Challenged:"),

@ -37,7 +37,7 @@ class dlg_challenge : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
dlg_challenge(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); dlg_challenge(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
~dlg_challenge(); ~dlg_challenge();
void setValues( const TQString&, const TQString& ); void setValues( const TQString&, const TQString& );
TQString values( void ); TQString values( void );

@ -19,8 +19,8 @@
#include <kicontheme.h> #include <kicontheme.h>
#include "dlg_engine.moc" #include "dlg_engine.moc"
dlg_engine::dlg_engine(TQWidget *tqparent, const char *name, resource *Rsrc, TQString ItemName ) : dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQString ItemName ) :
KDialogBase( tqparent, KDialogBase( parent,
name, name,
TRUE, TRUE,
i18n("Configure Engine"), i18n("Configure Engine"),

@ -38,7 +38,7 @@ class dlg_engine : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
dlg_engine(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0, TQString ItemName="" ); dlg_engine(TQWidget *parent=0, const char *name=0, resource *Rsrc=0, TQString ItemName="" );
~dlg_engine(); ~dlg_engine();
public slots: public slots:

@ -17,8 +17,8 @@
#include "dlg_login.moc" #include "dlg_login.moc"
dlg_login::dlg_login(TQWidget *tqparent, const char *name, resource *rsrc) : dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) :
KDialogBase(tqparent, name, TRUE, i18n("Login Prompt"), Help|Ok|Cancel, Ok,TRUE ) KDialogBase(parent, name, TRUE, i18n("Login Prompt"), Help|Ok|Cancel, Ok,TRUE )
{ {
serverList::Iterator i; serverList::Iterator i;
serverList::Iterator currentServer; serverList::Iterator currentServer;

@ -41,7 +41,7 @@ class dlg_login : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
dlg_login(TQWidget *tqparent, const char *name=0, resource *rsrc = NULL); dlg_login(TQWidget *parent, const char *name=0, resource *rsrc = NULL);
~dlg_login(); ~dlg_login();
void disableServerSelect(); void disableServerSelect();

@ -34,8 +34,8 @@
#define _TYPE_PC_ 1 #define _TYPE_PC_ 1
#define _TYPE_EMAIL_ 2 #define _TYPE_EMAIL_ 2
dlg_newmatch::dlg_newmatch(TQWidget *tqparent, const char *name, resource *Rsrc ) : dlg_newmatch::dlg_newmatch(TQWidget *parent, const char *name, resource *Rsrc ) :
KDialogBase(tqparent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, TRUE ) KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, TRUE )
{ {
myResource = Rsrc; myResource = Rsrc;
Param = new match_param( myResource ); Param = new match_param( myResource );

@ -85,7 +85,7 @@ class dlg_newmatch : public KDialogBase
TQSpinBox *SPIN_Black_Moves; TQSpinBox *SPIN_Black_Moves;
public: public:
dlg_newmatch(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); dlg_newmatch(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
~dlg_newmatch(); ~dlg_newmatch();
match_param* paramaters( void ) { return Param; } match_param* paramaters( void ) { return Param; }
protected slots: protected slots:

@ -20,8 +20,8 @@
#include "knightspixcache.h" #include "knightspixcache.h"
#include <tqimage.h> #include <tqimage.h>
dlg_promote::dlg_promote(TQWidget *tqparent, const char *name, resource *Rsrc ) : dlg_promote::dlg_promote(TQWidget *parent, const char *name, resource *Rsrc ) :
TQDialog( tqparent, name, TRUE, TQt::WStyle_Customize | TQt::WStyle_DialogBorder ) TQDialog( parent, name, TRUE, TQt::WStyle_Customize | TQt::WStyle_DialogBorder )
{ {
Resource = Rsrc; Resource = Rsrc;
Queen = new TQPushButton( this ); Queen = new TQPushButton( this );

@ -36,7 +36,7 @@ class dlg_promote : public TQDialog
TQ_OBJECT TQ_OBJECT
public: public:
dlg_promote(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0 ); dlg_promote(TQWidget *parent=0, const char *name=0, resource *Rsrc=0 );
~dlg_promote(); ~dlg_promote();
void Init( bool Army ); void Init( bool Army );

@ -20,8 +20,8 @@
#include <tqlineedit.h> #include <tqlineedit.h>
#include "resource.h" #include "resource.h"
dlg_selectemail::dlg_selectemail(TQWidget *tqparent, resource *Rsrc ) : dlg_selectemail::dlg_selectemail(TQWidget *parent, resource *Rsrc ) :
KDialogBase( tqparent, KDialogBase( parent,
0, 0,
TRUE, TRUE,
i18n("Select Email Address"), i18n("Select Email Address"),

@ -34,7 +34,7 @@ class dlg_selectemail : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
dlg_selectemail(TQWidget *tqparent, resource *Rsrc ); dlg_selectemail(TQWidget *parent, resource *Rsrc );
~dlg_selectemail(); ~dlg_selectemail();
signals: signals:

@ -23,8 +23,8 @@
#include <kcombobox.h> #include <kcombobox.h>
#include "resource.h" #include "resource.h"
dlg_selectengine::dlg_selectengine(TQWidget *tqparent, resource *Rsrc, bool army ) : dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army ) :
KDialogBase( tqparent, KDialogBase( parent,
0, 0,
TRUE, TRUE,
i18n("Select Computer Player"), i18n("Select Computer Player"),

@ -38,7 +38,7 @@ class dlg_selectengine : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
dlg_selectengine(TQWidget *tqparent, resource *Rsrc, bool army ); dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army );
~dlg_selectengine(); ~dlg_selectengine();
int strength( void ); int strength( void );
bool Army; bool Army;

@ -18,8 +18,8 @@
#include <kicontheme.h> #include <kicontheme.h>
#include "dlg_server.moc" #include "dlg_server.moc"
dlg_server::dlg_server(TQWidget *tqparent, const char *name, resource *Rsrc, TQString ItemName ) : dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQString ItemName ) :
KDialogBase( tqparent, KDialogBase( parent,
name, name,
TRUE, TRUE,
i18n("Configure Server"), i18n("Configure Server"),

@ -40,7 +40,7 @@ class dlg_server : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
dlg_server(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0, TQString ItemName="" ); dlg_server(TQWidget *parent=0, const char *name=0, resource *Rsrc=0, TQString ItemName="" );
~dlg_server(); ~dlg_server();
public slots: public slots:

@ -30,12 +30,12 @@
// dlg_settings::Constructor // dlg_settings::Constructor
// //
/////////////////////////////////////// ///////////////////////////////////////
dlg_settings::dlg_settings(TQWidget *tqparent, const char *name, resource *Rsrc ) : dlg_settings::dlg_settings(TQWidget *parent, const char *name, resource *Rsrc ) :
KDialogBase( IconList, KDialogBase( IconList,
i18n("Configure"), i18n("Configure"),
Help|Ok|Apply|Cancel, Help|Ok|Apply|Cancel,
Ok, Ok,
tqparent, parent,
name, name,
FALSE, FALSE,
FALSE ) FALSE )

@ -42,7 +42,7 @@ class dlg_settings : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
dlg_settings(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); dlg_settings(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
~dlg_settings(); ~dlg_settings();
public slots: public slots:

@ -28,9 +28,9 @@ io_base::io_base(resource *resc, int ID)
this->myID = ID; this->myID = ID;
} }
io_base::io_base(TQWidget* tqparent, resource *rsrc) io_base::io_base(TQWidget* parent, resource *rsrc)
{ {
this->myParent = tqparent; this->myParent = parent;
this->myResource = rsrc; this->myResource = rsrc;
} }

@ -43,7 +43,7 @@ public:
LOCAL = 1 LOCAL = 1
}; };
io_base(TQWidget *tqparent=NULL, resource *rsrc=NULL); io_base(TQWidget *parent=NULL, resource *rsrc=NULL);
io_base(resource *rsrc); io_base(resource *rsrc);
io_base(resource *rsrc, int ID); io_base(resource *rsrc, int ID);
virtual ~io_base(); virtual ~io_base();

@ -31,7 +31,7 @@
#include "proto_xboard.h" #include "proto_xboard.h"
#include "proto_uci.h" #include "proto_uci.h"
io_engine::io_engine( TQWidget *tqparent, resource *Rsrc ) : io_base( tqparent, Rsrc ) io_engine::io_engine( TQWidget *parent, resource *Rsrc ) : io_base( parent, Rsrc )
{ {
myType = io_base::LOCAL; myType = io_base::LOCAL;
engine = NULL; engine = NULL;

@ -36,7 +36,7 @@ class io_engine : public io_base
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
io_engine( TQWidget *tqparent=NULL, resource *Rsrc=0 ); io_engine( TQWidget *parent=NULL, resource *Rsrc=0 );
~io_engine(); ~io_engine();
void Start( const int side ); void Start( const int side );

@ -45,7 +45,7 @@ static const int TXT_Sht = 3;
static const int TXT_Wsp = 4; static const int TXT_Wsp = 4;
static const int TXT_Not = 5; static const int TXT_Not = 5;
io_internet::io_internet( TQWidget *tqparent, resource *rsrc ) io_internet::io_internet( TQWidget *parent, resource *rsrc )
{ {
myResource = rsrc; myResource = rsrc;
challenge = NULL; challenge = NULL;
@ -60,7 +60,7 @@ io_internet::io_internet( TQWidget *tqparent, resource *rsrc )
/* initialize various variables */ /* initialize various variables */
this->waiting_for_move_list = false; this->waiting_for_move_list = false;
this->myParent = tqparent; this->myParent = parent;
connected = false; /* we are not connected to a server */ connected = false; /* we are not connected to a server */
/* create the login dialog and show it to the user */ /* create the login dialog and show it to the user */

@ -75,7 +75,7 @@ class io_internet : public io_base
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
io_internet(TQWidget *tqparent = NULL, resource *Rsrc = NULL); io_internet(TQWidget *parent = NULL, resource *Rsrc = NULL);
~io_internet(); ~io_internet();
public slots: public slots:

@ -40,7 +40,7 @@
#include <tqframe.h> #include <tqframe.h>
#include <tqstyle.h> #include <tqstyle.h>
Knights::Knights(KCmdLineArgs *Args, TQWidget *tqparent, const char *name) : KMainWindow(tqparent, name) Knights::Knights(KCmdLineArgs *Args, TQWidget *parent, const char *name) : KMainWindow(parent, name)
{ {
InitAll = TRUE; InitAll = TRUE;
ResizeFlag = TRUE; ResizeFlag = TRUE;

@ -62,7 +62,7 @@ class Knights : public KMainWindow
KAboutData *aboutData; KAboutData *aboutData;
resource *Resource; resource *Resource;
Knights( KCmdLineArgs *Args, TQWidget* tqparent=0, const char *name=0 ); Knights( KCmdLineArgs *Args, TQWidget* parent=0, const char *name=0 );
~Knights(); ~Knights();
bool init( void ); bool init( void );
void initMenus( void ); void initMenus( void );

@ -31,7 +31,7 @@
#include <kprinter.h> #include <kprinter.h>
#include <tqsimplerichtext.h> #include <tqsimplerichtext.h>
KnightsTextView::KnightsTextView(TQWidget *tqparent, resource *Rsrc ) : TQTextBrowser(tqparent) KnightsTextView::KnightsTextView(TQWidget *parent, resource *Rsrc ) : TQTextBrowser(parent)
{ {
myResource = Rsrc; myResource = Rsrc;
setReadOnly( TRUE ); setReadOnly( TRUE );

@ -33,7 +33,7 @@ class KnightsTextView : public TQTextBrowser
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KnightsTextView(TQWidget *tqparent, resource *Rsrc ); KnightsTextView(TQWidget *parent, resource *Rsrc );
~KnightsTextView(); ~KnightsTextView();
void pageMove( TQt::Key key=Key_PageUp ); void pageMove( TQt::Key key=Key_PageUp );

@ -23,7 +23,7 @@
#include "resource.h" #include "resource.h"
#include "match_param.h" #include "match_param.h"
list_pgn::list_pgn(TQWidget *tqparent, const char *name) : TQVBox(tqparent,name) list_pgn::list_pgn(TQWidget *parent, const char *name) : TQVBox(parent,name)
{ {
listView = new KListView( this, "listView" ); listView = new KListView( this, "listView" );
listView->addColumn( i18n( "Result" ) ); listView->addColumn( i18n( "Result" ) );

@ -37,7 +37,7 @@ class list_pgn : public TQVBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
list_pgn(TQWidget *tqparent=0, const char *name=0); list_pgn(TQWidget *parent=0, const char *name=0);
void setURL( TQString URL ); void setURL( TQString URL );
void setProgress( const int ); void setProgress( const int );
TQString URL( void ) TQString URL( void )

@ -30,14 +30,14 @@
// match::match // match::match
// //
/////////////////////////////////////// ///////////////////////////////////////
match::match( TQWidget *tqparent, match_param *param, resource *Rsrc ) : TQWidget(tqparent) match::match( TQWidget *parent, match_param *param, resource *Rsrc ) : TQWidget(parent)
{ {
Resource = Rsrc; Resource = Rsrc;
/* Init Children */ /* Init Children */
Record = new pgn( Resource, param ); Record = new pgn( Resource, param );
Logic = new logic( Resource, param ); Logic = new logic( Resource, param );
Board = new board_2d( tqparent, "Board", Resource, Logic ); Board = new board_2d( parent, "Board", Resource, Logic );
Board->show(); Board->show();
connect( Board, TQT_SIGNAL( leftClick(int) ), this, TQT_SLOT( slot_Select(int) ) ); connect( Board, TQT_SIGNAL( leftClick(int) ), this, TQT_SLOT( slot_Select(int) ) );
connect( Board, TQT_SIGNAL( rightClick(int) ), this, TQT_SLOT( slot_Preview(int) ) ); connect( Board, TQT_SIGNAL( rightClick(int) ), this, TQT_SLOT( slot_Preview(int) ) );

@ -55,7 +55,7 @@ class match : public TQWidget
char Draw_Offered[2]; char Draw_Offered[2];
public: public:
match(TQWidget *tqparent, match_param *param, resource *Rsrc); match(TQWidget *parent, match_param *param, resource *Rsrc);
~match(); ~match();
char inputOnMove( bool reverse=FALSE ); char inputOnMove( bool reverse=FALSE );
char input( char army ); char input( char army );

@ -18,14 +18,14 @@
#include <tqregexp.h> #include <tqregexp.h>
#include "setpageaudio.moc" #include "setpageaudio.moc"
setPageAudio::setPageAudio(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{ {
Parent = tqparent; Parent = parent;
Resource = Rsrc; Resource = Rsrc;
NewSounds = 0; NewSounds = 0;
changeTheme = FALSE; changeTheme = FALSE;
BUTTON_enableAudio = new TQCheckBox( i18n( "Enable Audio" ), tqparent ); BUTTON_enableAudio = new TQCheckBox( i18n( "Enable Audio" ), parent );
BUTTON_enableAudio->setChecked( Resource->OPTION_Audio ); BUTTON_enableAudio->setChecked( Resource->OPTION_Audio );
addWidget( BUTTON_enableAudio ); addWidget( BUTTON_enableAudio );
connect( BUTTON_enableAudio, TQT_SIGNAL( toggled(bool) ), connect( BUTTON_enableAudio, TQT_SIGNAL( toggled(bool) ),
@ -34,14 +34,14 @@ setPageAudio::setPageAudio(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(t
GROUP_Theme = new TQGroupBox( 1, GROUP_Theme = new TQGroupBox( 1,
Qt::Vertical, Qt::Vertical,
i18n( "Audio Themes" ), i18n( "Audio Themes" ),
tqparent ); parent );
addWidget( GROUP_Theme ); addWidget( GROUP_Theme );
Current_Theme = new KComboBox ( GROUP_Theme ); Current_Theme = new KComboBox ( GROUP_Theme );
buildThemeList(); buildThemeList();
connect( Current_Theme, TQT_SIGNAL( activated(int) ), connect( Current_Theme, TQT_SIGNAL( activated(int) ),
this, TQT_SLOT( slot_currentTheme(int) ) ); this, TQT_SLOT( slot_currentTheme(int) ) );
BOX_Main = new TQHBox( tqparent ); BOX_Main = new TQHBox( parent );
addWidget( BOX_Main ); addWidget( BOX_Main );
GROUP_Volume = new TQGroupBox( 3, Qt::Vertical, i18n( "Volume" ), BOX_Main ); GROUP_Volume = new TQGroupBox( 3, Qt::Vertical, i18n( "Volume" ), BOX_Main );

@ -39,7 +39,7 @@ class setPageAudio : public TQVBoxLayout
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
setPageAudio(TQWidget *tqparent=0, resource *Rsrc=0); setPageAudio(TQWidget *parent=0, resource *Rsrc=0);
~setPageAudio(); ~setPageAudio();
void buildThemeList( void ); void buildThemeList( void );
int NewSounds; int NewSounds;

@ -26,7 +26,7 @@
#include <kfiledialog.h> #include <kfiledialog.h>
#include <kio/netaccess.h> #include <kio/netaccess.h>
setPageDisplay::setPageDisplay(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) setPageDisplay::setPageDisplay(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{ {
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::tqstyle();
Resource = Rsrc; Resource = Rsrc;
@ -37,7 +37,7 @@ setPageDisplay::setPageDisplay(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLay
refreshBoard = FALSE; refreshBoard = FALSE;
rebuildConsole = FALSE; rebuildConsole = FALSE;
TabParent = new TQTabWidget( tqparent, "setPageDisplay" ); TabParent = new TQTabWidget( parent, "setPageDisplay" );
initTab1(); initTab1();
initTab2(); initTab2();
addWidget( TabParent ); addWidget( TabParent );

@ -43,7 +43,7 @@ class setPageDisplay : public TQVBoxLayout
TQ_OBJECT TQ_OBJECT
public: public:
setPageDisplay(TQWidget *tqparent=0, resource *Rsrc=0); setPageDisplay(TQWidget *parent=0, resource *Rsrc=0);
~setPageDisplay(); ~setPageDisplay();
void buildThemeList( void ); void buildThemeList( void );
int NewBoards; int NewBoards;

@ -17,14 +17,14 @@
#include "setpageengines.moc" #include "setpageengines.moc"
setPageEngines::setPageEngines(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{ {
Parent = tqparent; Parent = parent;
Resource = Rsrc; Resource = Rsrc;
Engine_Dialog = NULL; Engine_Dialog = NULL;
Engines_ListView = NULL; Engines_ListView = NULL;
BOX_Current = new TQHBox( tqparent ); BOX_Current = new TQHBox( parent );
addWidget( BOX_Current ); addWidget( BOX_Current );
/* Engines to play White */ /* Engines to play White */
@ -55,7 +55,7 @@ setPageEngines::setPageEngines(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLay
GROUP_Engines = new TQGroupBox( 2, GROUP_Engines = new TQGroupBox( 2,
Qt::Horizontal, Qt::Horizontal,
i18n( "Chess Engines" ), i18n( "Chess Engines" ),
tqparent ); parent );
addWidget( GROUP_Engines ); addWidget( GROUP_Engines );
Engines_ListView = new KListView( GROUP_Engines ); Engines_ListView = new KListView( GROUP_Engines );

@ -40,7 +40,7 @@ class setPageEngines : public TQVBoxLayout
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
setPageEngines(TQWidget *tqparent=0, resource *Rsrc=0); setPageEngines(TQWidget *parent=0, resource *Rsrc=0);
~setPageEngines(); ~setPageEngines();
public slots: public slots:

@ -19,21 +19,21 @@
#include <kicontheme.h> #include <kicontheme.h>
#include "setpagegeneral.moc" #include "setpagegeneral.moc"
setPageGeneral::setPageGeneral(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{ {
Parent = tqparent; Parent = parent;
Resource = Rsrc; Resource = Rsrc;
GROUP_UserName = new TQGroupBox( 1, GROUP_UserName = new TQGroupBox( 1,
Qt::Horizontal, Qt::Horizontal,
i18n( "Your Name:" ), i18n( "Your Name:" ),
tqparent ); parent );
addWidget( GROUP_UserName ); addWidget( GROUP_UserName );
EDIT_UserName = new KLineEdit( GROUP_UserName ); EDIT_UserName = new KLineEdit( GROUP_UserName );
EDIT_UserName->setText( Resource->Local_Player ); EDIT_UserName->setText( Resource->Local_Player );
connect( EDIT_UserName, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_UserName(const TQString&) ) ); connect( EDIT_UserName, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_UserName(const TQString&) ) );
BOX_SaveInit = new TQHBox( tqparent ); BOX_SaveInit = new TQHBox( parent );
addWidget( BOX_SaveInit ); addWidget( BOX_SaveInit );
GROUP_OnInit = new TQButtonGroup( 3, Qt::Vertical, i18n("When Knights Begins It Should:"), BOX_SaveInit ); GROUP_OnInit = new TQButtonGroup( 3, Qt::Vertical, i18n("When Knights Begins It Should:"), BOX_SaveInit );
@ -61,7 +61,7 @@ setPageGeneral::setPageGeneral(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayo
GROUP_Reuse_PGN = new TQGroupBox( 2, GROUP_Reuse_PGN = new TQGroupBox( 2,
Qt::Vertical, Qt::Vertical,
i18n( "Append to Save File:" ), i18n( "Append to Save File:" ),
tqparent ); parent );
addWidget( GROUP_Reuse_PGN ); addWidget( GROUP_Reuse_PGN );
BUTTON_Reuse_PGN = new TQCheckBox( i18n( "Append to Save File" ), GROUP_Reuse_PGN ); BUTTON_Reuse_PGN = new TQCheckBox( i18n( "Append to Save File" ), GROUP_Reuse_PGN );
BUTTON_Reuse_PGN->setChecked( Resource->OPTION_Reuse_PGN ); BUTTON_Reuse_PGN->setChecked( Resource->OPTION_Reuse_PGN );
@ -78,19 +78,19 @@ setPageGeneral::setPageGeneral(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayo
EDIT_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN ); EDIT_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN );
BUTTON_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN ); BUTTON_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN );
BUTTON_Pause_On_Minimize = new TQCheckBox( i18n( "Pause on Minimize" ), tqparent ); BUTTON_Pause_On_Minimize = new TQCheckBox( i18n( "Pause on Minimize" ), parent );
BUTTON_Pause_On_Minimize->setChecked( Resource->OPTION_Pause_On_Minimize ); BUTTON_Pause_On_Minimize->setChecked( Resource->OPTION_Pause_On_Minimize );
connect( BUTTON_Pause_On_Minimize, TQT_SIGNAL( toggled(bool) ), connect( BUTTON_Pause_On_Minimize, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( slot_Pause_On_Minimize(bool) ) ); this, TQT_SLOT( slot_Pause_On_Minimize(bool) ) );
addWidget( BUTTON_Pause_On_Minimize ); addWidget( BUTTON_Pause_On_Minimize );
BUTTON_Auto_Queen = new TQCheckBox( i18n( "Always Promote to Queen" ), tqparent ); BUTTON_Auto_Queen = new TQCheckBox( i18n( "Always Promote to Queen" ), parent );
BUTTON_Auto_Queen->setChecked( Resource->OPTION_Auto_Queen ); BUTTON_Auto_Queen->setChecked( Resource->OPTION_Auto_Queen );
connect( BUTTON_Auto_Queen, TQT_SIGNAL( toggled(bool) ), connect( BUTTON_Auto_Queen, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( slot_Auto_Queen(bool) ) ); this, TQT_SLOT( slot_Auto_Queen(bool) ) );
addWidget( BUTTON_Auto_Queen ); addWidget( BUTTON_Auto_Queen );
BUTTON_Auto_Flag = new TQCheckBox( i18n( "Call Flag Automatically" ), tqparent ); BUTTON_Auto_Flag = new TQCheckBox( i18n( "Call Flag Automatically" ), parent );
BUTTON_Auto_Flag->setChecked( Resource->OPTION_Auto_Call_Flag ); BUTTON_Auto_Flag->setChecked( Resource->OPTION_Auto_Call_Flag );
connect( BUTTON_Auto_Flag, TQT_SIGNAL( toggled(bool) ), connect( BUTTON_Auto_Flag, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( slot_Auto_Flag(bool) ) ); this, TQT_SLOT( slot_Auto_Flag(bool) ) );

@ -39,7 +39,7 @@ class setPageGeneral : public TQVBoxLayout
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
setPageGeneral(TQWidget *tqparent=0, resource *Rsrc=0); setPageGeneral(TQWidget *parent=0, resource *Rsrc=0);
~setPageGeneral(); ~setPageGeneral();
signals: signals:
void enableApply( void ); void enableApply( void );

@ -19,7 +19,7 @@
#include <tqstyle.h> #include <tqstyle.h>
#include <kicontheme.h> #include <kicontheme.h>
setPageServers::setPageServers(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) setPageServers::setPageServers(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{ {
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::tqstyle();
margin = Style.defaultFrameWidth(); margin = Style.defaultFrameWidth();
@ -27,7 +27,7 @@ setPageServers::setPageServers(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLay
Servers_ListView = NULL; Servers_ListView = NULL;
resetServer = FALSE; resetServer = FALSE;
TabParent = new TQTabWidget( tqparent, "setPageDisplay" ); TabParent = new TQTabWidget( parent, "setPageDisplay" );
initTab1(); initTab1();
initTab2(); initTab2();
addWidget( TabParent ); addWidget( TabParent );

@ -46,7 +46,7 @@ class setPageServers : public TQVBoxLayout
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
setPageServers(TQWidget *tqparent=0, resource *Rsrc=0); setPageServers(TQWidget *parent=0, resource *Rsrc=0);
~setPageServers(); ~setPageServers();
bool resetServer; bool resetServer;

@ -25,9 +25,9 @@
#include <kstddirs.h> #include <kstddirs.h>
#include <ktempfile.h> #include <ktempfile.h>
tab_pgnView::tab_pgnView(pgn *tqparent, resource *Rsrc ) : KnightsTextView(0,Rsrc) tab_pgnView::tab_pgnView(pgn *parent, resource *Rsrc ) : KnightsTextView(0,Rsrc)
{ {
myParent = tqparent; myParent = parent;
whiteImage = NULL; whiteImage = NULL;
blackImage = NULL; blackImage = NULL;

@ -34,7 +34,7 @@ class tab_pgnView : public KnightsTextView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
tab_pgnView(pgn *tqparent, resource *Rsrc ); tab_pgnView(pgn *parent, resource *Rsrc );
~tab_pgnView(); ~tab_pgnView();
void init( void ); void init( void );

@ -20,7 +20,7 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <tqregexp.h> #include <tqregexp.h>
tab_SeekList::tab_SeekList(TQWidget *tqparent, const char *name, resource *Rsrc ) : KListView(tqparent,name) tab_SeekList::tab_SeekList(TQWidget *parent, const char *name, resource *Rsrc ) : KListView(parent,name)
{ {
myResource = Rsrc; myResource = Rsrc;
seek = FALSE; seek = FALSE;

@ -54,7 +54,7 @@ class tab_SeekList : public KListView
TQStringList SF_07; TQStringList SF_07;
public: public:
tab_SeekList(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); tab_SeekList(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
~tab_SeekList(); ~tab_SeekList();
public slots: public slots:

@ -19,7 +19,7 @@
#include "resource.h" #include "resource.h"
#include <tqpainter.h> #include <tqpainter.h>
TabGrip::TabGrip(TQWidget *tqparent, const char *name ) : TQWidget(tqparent,name) TabGrip::TabGrip(TQWidget *parent, const char *name ) : TQWidget(parent,name)
{ {
setMaximumSize( 3200, 12 ); setMaximumSize( 3200, 12 );
setMinimumSize( 32, 12 ); setMinimumSize( 32, 12 );

@ -29,7 +29,7 @@ class TabGrip : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TabGrip(TQWidget *tqparent=0, const char *name=0); TabGrip(TQWidget *parent=0, const char *name=0);
~TabGrip(); ~TabGrip();
void paintEvent( TQPaintEvent* ); void paintEvent( TQPaintEvent* );
void mouseMoveEvent( TQMouseEvent *event ); void mouseMoveEvent( TQMouseEvent *event );

@ -30,7 +30,7 @@
// TabPage::constructor // TabPage::constructor
// //
/////////////////////////////////////// ///////////////////////////////////////
TabPage::TabPage( TQWidget *tqparent, TQWidget *child, resource *rsrc ) : TQVBox(tqparent) TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(parent)
{ {
myResource = rsrc; myResource = rsrc;
myChild = child; myChild = child;
@ -118,7 +118,7 @@ void TabPage::tabDragged( const TQPoint &dest, const TQPoint &offset )
} }
else else
{ {
kdError() << "TabPage::tabDragged: Can not move without a tqparent TabBox." << endl; kdError() << "TabPage::tabDragged: Can not move without a parent TabBox." << endl;
} }
} }
/////////////////////////////////////// ///////////////////////////////////////

@ -37,7 +37,7 @@ class TabPage : public TQVBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TabPage( TQWidget *tqparent, TQWidget *child, resource *rsrc ); TabPage( TQWidget *parent, TQWidget *child, resource *rsrc );
~TabPage(); ~TabPage();
void setCaption( const TQString& ); void setCaption( const TQString& );
TQWidget* getChild( void ); TQWidget* getChild( void );

@ -20,7 +20,7 @@
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqstyle.h> #include <tqstyle.h>
thinbuttons::thinbuttons(TQWidget *tqparent, const char *name, resource *Rsrc ) : TQFrame(tqparent,name) thinbuttons::thinbuttons(TQWidget *parent, const char *name, resource *Rsrc ) : TQFrame(parent,name)
{ {
Resource = Rsrc; Resource = Rsrc;
rightClickID = 0; rightClickID = 0;

@ -38,7 +38,7 @@ class thinbuttons : public TQFrame
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
thinbuttons(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); thinbuttons(TQWidget *parent=0, const char *name=0, resource *Rsrc=0);
~thinbuttons(); ~thinbuttons();
void mousePressEvent( TQMouseEvent *event ); void mousePressEvent( TQMouseEvent *event );
void setButton( int id ); void setButton( int id );

@ -24,7 +24,7 @@
#include <tqregexp.h> #include <tqregexp.h>
#include "wiz_setup.moc" #include "wiz_setup.moc"
wiz_setup::wiz_setup(TQWidget *tqparent, const char *name, resource *Rsrc ) : KWizard(tqparent,name,TRUE) wiz_setup::wiz_setup(TQWidget *parent, const char *name, resource *Rsrc ) : KWizard(parent,name,TRUE)
{ {
myResource = Rsrc; myResource = Rsrc;
steps = 0; steps = 0;

@ -39,7 +39,7 @@ class wiz_setup : public KWizard
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
wiz_setup( TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0 ); wiz_setup( TQWidget *parent=0, const char *name=0, resource *Rsrc=0 );
~wiz_setup(); ~wiz_setup();
protected slots: protected slots:
void slot_Work( const TQString& pageTitle ); void slot_Work( const TQString& pageTitle );

Loading…
Cancel
Save