diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | e28d6b696fec7850a5bcafb8ee3bfe27db99f996 (patch) | |
tree | ee7a85ad917a49e3e722638934c6650dcb45a132 | |
parent | cc087625fa031fa2f4fc22039a21c249b9b1d782 (diff) | |
download | knights-e28d6b696fec7850a5bcafb8ee3bfe27db99f996.tar.gz knights-e28d6b696fec7850a5bcafb8ee3bfe27db99f996.zip |
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
71 files changed, 106 insertions, 106 deletions
diff --git a/knights/accel.cpp b/knights/accel.cpp index e0ac9fc..bbda5d4 100644 --- a/knights/accel.cpp +++ b/knights/accel.cpp @@ -18,7 +18,7 @@ #include "accel.moc" #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("Next Move"), "Next Move", Key_Down, TRUE ); diff --git a/knights/accel.h b/knights/accel.h index 43e4932..ae26d21 100644 --- a/knights/accel.h +++ b/knights/accel.h @@ -30,7 +30,7 @@ class Accel : public KAccel TQ_OBJECT public: - Accel( TQWidget *tqparent=0, TQObject *target=0 ); + Accel( TQWidget *parent=0, TQObject *target=0 ); ~Accel(); void setTarget( TQObject* ); diff --git a/knights/board_2d.cpp b/knights/board_2d.cpp index c7c627c..b231be5 100644 --- a/knights/board_2d.cpp +++ b/knights/board_2d.cpp @@ -25,7 +25,7 @@ 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; updateX2 = updateY2 = -4000; diff --git a/knights/board_2d.h b/knights/board_2d.h index 43a820a..e000abd 100644 --- a/knights/board_2d.h +++ b/knights/board_2d.h @@ -49,7 +49,7 @@ class board_2d : public board_base Q_OBJECT TQ_OBJECT 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(); virtual void drawMove( const ChessMove &chessMove, const bool &reverse=FALSE ); virtual void setPremovePositions( const int&, const int& ); diff --git a/knights/board_base.cpp b/knights/board_base.cpp index 23fe734..ce63e56 100644 --- a/knights/board_base.cpp +++ b/knights/board_base.cpp @@ -19,7 +19,7 @@ #include "resource.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 */ myResource = Rsrc; diff --git a/knights/board_base.h b/knights/board_base.h index 451f135..c044791 100644 --- a/knights/board_base.h +++ b/knights/board_base.h @@ -35,7 +35,7 @@ class board_base : public TQWidget TQ_OBJECT 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 void drawMove( const ChessMove &chessMove, const bool &reverse=FALSE ); virtual void setPremovePositions( const int&, const int& ); diff --git a/knights/challenge_graph.cpp b/knights/challenge_graph.cpp index e9ff3d2..a027f56 100644 --- a/knights/challenge_graph.cpp +++ b/knights/challenge_graph.cpp @@ -50,8 +50,8 @@ // Challenge_Graph::Constructor // /////////////////////////////////////// -Challenge_Graph::Challenge_Graph( TQWidget* tqparent, const char* name, resource *Rsrc ) - : TQVBox(tqparent, name), myResource(Rsrc) +Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *Rsrc ) + : TQVBox(parent, name), myResource(Rsrc) { max_rating = 2600; max_time = 60; diff --git a/knights/challenge_graph.h b/knights/challenge_graph.h index bb60607..2f2e34b 100644 --- a/knights/challenge_graph.h +++ b/knights/challenge_graph.h @@ -38,7 +38,7 @@ class Challenge_Graph : public TQVBox TQ_OBJECT 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(); void resizeEvent( TQResizeEvent* ); void add( Challenge_Game *seek ); diff --git a/knights/challenge_graph_view.cpp b/knights/challenge_graph_view.cpp index abc06fe..d6fa862 100644 --- a/knights/challenge_graph_view.cpp +++ b/knights/challenge_graph_view.cpp @@ -29,14 +29,14 @@ // Challenge_Graph_View::Constructor // /////////////////////////////////////// -Challenge_Graph_View::Challenge_Graph_View(TQCanvas& c, TQWidget * tqparent,const char* name, WFlags f, TQLabel *qsb) - : TQCanvasView(&c,tqparent,name,f), canvas(c), statusbar(qsb) +Challenge_Graph_View::Challenge_Graph_View(TQCanvas& c, TQWidget * parent,const char* name, WFlags f, TQLabel *qsb) + : TQCanvasView(&c,parent,name,f), canvas(c), statusbar(qsb) { setHScrollBarMode( TQScrollView::AlwaysOff ); setVScrollBarMode( TQScrollView::AlwaysOff ); - if ( tqparent ) - tqparent->installEventFilter( this ); + if ( parent ) + parent->installEventFilter( this ); TQScrollView::viewport()->setMouseTracking(true); } /////////////////////////////////////// diff --git a/knights/challenge_graph_view.h b/knights/challenge_graph_view.h index 0162f20..d5be8a7 100644 --- a/knights/challenge_graph_view.h +++ b/knights/challenge_graph_view.h @@ -30,7 +30,7 @@ class Challenge_Graph_View : public TQCanvasView TQ_OBJECT 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(); void reset(); diff --git a/knights/chessclock.cpp b/knights/chessclock.cpp index ae62322..738615a 100644 --- a/knights/chessclock.cpp +++ b/knights/chessclock.cpp @@ -18,7 +18,7 @@ #include "chessclock.moc" #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; Silent = TRUE; diff --git a/knights/chessclock.h b/knights/chessclock.h index e33695e..5f7776a 100644 --- a/knights/chessclock.h +++ b/knights/chessclock.h @@ -35,7 +35,7 @@ class chessclock : public TQWidget public: - chessclock( TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0 ); + chessclock( TQWidget *parent=0, const char *name=0, resource *Rsrc=0 ); ~chessclock(); /* The Set function accepts Centiseconds ( 1/100 second ) */ diff --git a/knights/console.cpp b/knights/console.cpp index bfa9932..6b36fa5 100644 --- a/knights/console.cpp +++ b/knights/console.cpp @@ -26,9 +26,9 @@ #include <tqregexp.h> #include <tqstyle.h> -Console::Console(TQWidget *tqparent, +Console::Console(TQWidget *parent, const char *name, - resource *Rsrc ) : TQVBox(tqparent,name) + resource *Rsrc ) : TQVBox(parent,name) { myResource = Rsrc; SelfMoving = FALSE; diff --git a/knights/console.h b/knights/console.h index 2d9b814..262dfb2 100644 --- a/knights/console.h +++ b/knights/console.h @@ -47,7 +47,7 @@ class Console : public TQVBox 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(); void buildAccel( void ); diff --git a/knights/core.cpp b/knights/core.cpp index 0caf844..72a91c5 100644 --- a/knights/core.cpp +++ b/knights/core.cpp @@ -39,7 +39,7 @@ // 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; listPGN = NULL; diff --git a/knights/core.h b/knights/core.h index 5e8e66c..1119b21 100644 --- a/knights/core.h +++ b/knights/core.h @@ -43,7 +43,7 @@ class core : public TQWidget Q_OBJECT TQ_OBJECT public: - core(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); + core(TQWidget *parent=0, const char *name=0, resource *Rsrc=0); ~core(); TQStringList* notation( void ); TQString caption( void ); diff --git a/knights/definitions.h b/knights/definitions.h index c6d2811..3afe104 100644 --- a/knights/definitions.h +++ b/knights/definitions.h @@ -50,7 +50,7 @@ const int PLAYEREMAIL = 0x01; // Email Opponent const int PLAYERTCP = 0x02; // Internet Chess Engine 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 PLAYEREXAMINE = 0x11; // ICS Examine Mode diff --git a/knights/dlg_challenge.cpp b/knights/dlg_challenge.cpp index 342be76..f4e04e1 100644 --- a/knights/dlg_challenge.cpp +++ b/knights/dlg_challenge.cpp @@ -18,8 +18,8 @@ #include <tqregexp.h> #include "dlg_challenge.moc" -dlg_challenge::dlg_challenge(TQWidget *tqparent, const char *name, resource *Rsrc ) : - KDialogBase( tqparent, +dlg_challenge::dlg_challenge(TQWidget *parent, const char *name, resource *Rsrc ) : + KDialogBase( parent, name, FALSE, i18n("You've Been Challenged:"), diff --git a/knights/dlg_challenge.h b/knights/dlg_challenge.h index e21da4a..c75b1cb 100644 --- a/knights/dlg_challenge.h +++ b/knights/dlg_challenge.h @@ -37,7 +37,7 @@ class dlg_challenge : public KDialogBase Q_OBJECT TQ_OBJECT 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(); void setValues( const TQString&, const TQString& ); TQString values( void ); diff --git a/knights/dlg_engine.cpp b/knights/dlg_engine.cpp index b99e21d..4976793 100644 --- a/knights/dlg_engine.cpp +++ b/knights/dlg_engine.cpp @@ -19,8 +19,8 @@ #include <kicontheme.h> #include "dlg_engine.moc" -dlg_engine::dlg_engine(TQWidget *tqparent, const char *name, resource *Rsrc, TQString ItemName ) : - KDialogBase( tqparent, +dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQString ItemName ) : + KDialogBase( parent, name, TRUE, i18n("Configure Engine"), diff --git a/knights/dlg_engine.h b/knights/dlg_engine.h index f8ca56b..74f5800 100644 --- a/knights/dlg_engine.h +++ b/knights/dlg_engine.h @@ -38,7 +38,7 @@ class dlg_engine : public KDialogBase Q_OBJECT TQ_OBJECT 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(); public slots: diff --git a/knights/dlg_login.cpp b/knights/dlg_login.cpp index 550b837..7cd5c49 100644 --- a/knights/dlg_login.cpp +++ b/knights/dlg_login.cpp @@ -17,8 +17,8 @@ #include "dlg_login.moc" -dlg_login::dlg_login(TQWidget *tqparent, const char *name, resource *rsrc) : - KDialogBase(tqparent, name, TRUE, i18n("Login Prompt"), Help|Ok|Cancel, Ok,TRUE ) +dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) : + KDialogBase(parent, name, TRUE, i18n("Login Prompt"), Help|Ok|Cancel, Ok,TRUE ) { serverList::Iterator i; serverList::Iterator currentServer; diff --git a/knights/dlg_login.h b/knights/dlg_login.h index 8421b8f..c9f4a76 100644 --- a/knights/dlg_login.h +++ b/knights/dlg_login.h @@ -41,7 +41,7 @@ class dlg_login : public KDialogBase TQ_OBJECT 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(); void disableServerSelect(); diff --git a/knights/dlg_newmatch.cpp b/knights/dlg_newmatch.cpp index f49c825..55aba04 100644 --- a/knights/dlg_newmatch.cpp +++ b/knights/dlg_newmatch.cpp @@ -34,8 +34,8 @@ #define _TYPE_PC_ 1 #define _TYPE_EMAIL_ 2 -dlg_newmatch::dlg_newmatch(TQWidget *tqparent, const char *name, resource *Rsrc ) : -KDialogBase(tqparent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, TRUE ) +dlg_newmatch::dlg_newmatch(TQWidget *parent, const char *name, resource *Rsrc ) : +KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, TRUE ) { myResource = Rsrc; Param = new match_param( myResource ); diff --git a/knights/dlg_newmatch.h b/knights/dlg_newmatch.h index af3ef98..38b9d1e 100644 --- a/knights/dlg_newmatch.h +++ b/knights/dlg_newmatch.h @@ -85,7 +85,7 @@ class dlg_newmatch : public KDialogBase TQSpinBox *SPIN_Black_Moves; 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(); match_param* paramaters( void ) { return Param; } protected slots: diff --git a/knights/dlg_promote.cpp b/knights/dlg_promote.cpp index 653ddf3..15b1970 100644 --- a/knights/dlg_promote.cpp +++ b/knights/dlg_promote.cpp @@ -20,8 +20,8 @@ #include "knightspixcache.h" #include <tqimage.h> -dlg_promote::dlg_promote(TQWidget *tqparent, const char *name, resource *Rsrc ) : - TQDialog( tqparent, name, TRUE, TQt::WStyle_Customize | TQt::WStyle_DialogBorder ) +dlg_promote::dlg_promote(TQWidget *parent, const char *name, resource *Rsrc ) : + TQDialog( parent, name, TRUE, TQt::WStyle_Customize | TQt::WStyle_DialogBorder ) { Resource = Rsrc; Queen = new TQPushButton( this ); diff --git a/knights/dlg_promote.h b/knights/dlg_promote.h index a96d515..ced8f9e 100644 --- a/knights/dlg_promote.h +++ b/knights/dlg_promote.h @@ -36,7 +36,7 @@ class dlg_promote : public TQDialog TQ_OBJECT 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(); void Init( bool Army ); diff --git a/knights/dlg_selectemail.cpp b/knights/dlg_selectemail.cpp index d33aefb..9c6c744 100644 --- a/knights/dlg_selectemail.cpp +++ b/knights/dlg_selectemail.cpp @@ -20,8 +20,8 @@ #include <tqlineedit.h> #include "resource.h" -dlg_selectemail::dlg_selectemail(TQWidget *tqparent, resource *Rsrc ) : - KDialogBase( tqparent, +dlg_selectemail::dlg_selectemail(TQWidget *parent, resource *Rsrc ) : + KDialogBase( parent, 0, TRUE, i18n("Select Email Address"), diff --git a/knights/dlg_selectemail.h b/knights/dlg_selectemail.h index c189b4f..3cb085d 100644 --- a/knights/dlg_selectemail.h +++ b/knights/dlg_selectemail.h @@ -34,7 +34,7 @@ class dlg_selectemail : public KDialogBase Q_OBJECT TQ_OBJECT public: - dlg_selectemail(TQWidget *tqparent, resource *Rsrc ); + dlg_selectemail(TQWidget *parent, resource *Rsrc ); ~dlg_selectemail(); signals: diff --git a/knights/dlg_selectengine.cpp b/knights/dlg_selectengine.cpp index cb2a8fc..253ef72 100644 --- a/knights/dlg_selectengine.cpp +++ b/knights/dlg_selectengine.cpp @@ -23,8 +23,8 @@ #include <kcombobox.h> #include "resource.h" -dlg_selectengine::dlg_selectengine(TQWidget *tqparent, resource *Rsrc, bool army ) : - KDialogBase( tqparent, +dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army ) : + KDialogBase( parent, 0, TRUE, i18n("Select Computer Player"), diff --git a/knights/dlg_selectengine.h b/knights/dlg_selectengine.h index 98d07f4..88fd01e 100644 --- a/knights/dlg_selectengine.h +++ b/knights/dlg_selectengine.h @@ -38,7 +38,7 @@ class dlg_selectengine : public KDialogBase Q_OBJECT TQ_OBJECT public: - dlg_selectengine(TQWidget *tqparent, resource *Rsrc, bool army ); + dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army ); ~dlg_selectengine(); int strength( void ); bool Army; diff --git a/knights/dlg_server.cpp b/knights/dlg_server.cpp index a04c15e..e7e1cad 100644 --- a/knights/dlg_server.cpp +++ b/knights/dlg_server.cpp @@ -18,8 +18,8 @@ #include <kicontheme.h> #include "dlg_server.moc" -dlg_server::dlg_server(TQWidget *tqparent, const char *name, resource *Rsrc, TQString ItemName ) : - KDialogBase( tqparent, +dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQString ItemName ) : + KDialogBase( parent, name, TRUE, i18n("Configure Server"), diff --git a/knights/dlg_server.h b/knights/dlg_server.h index 117549f..e8fc956 100644 --- a/knights/dlg_server.h +++ b/knights/dlg_server.h @@ -40,7 +40,7 @@ class dlg_server : public KDialogBase Q_OBJECT TQ_OBJECT 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(); public slots: diff --git a/knights/dlg_settings.cpp b/knights/dlg_settings.cpp index 489acd0..c401767 100644 --- a/knights/dlg_settings.cpp +++ b/knights/dlg_settings.cpp @@ -30,12 +30,12 @@ // 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, i18n("Configure"), Help|Ok|Apply|Cancel, Ok, - tqparent, + parent, name, FALSE, FALSE ) diff --git a/knights/dlg_settings.h b/knights/dlg_settings.h index 0a7e577..646970b 100644 --- a/knights/dlg_settings.h +++ b/knights/dlg_settings.h @@ -42,7 +42,7 @@ class dlg_settings : public KDialogBase Q_OBJECT TQ_OBJECT 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(); public slots: diff --git a/knights/io_base.cpp b/knights/io_base.cpp index d3ab39c..c5f625a 100644 --- a/knights/io_base.cpp +++ b/knights/io_base.cpp @@ -28,9 +28,9 @@ io_base::io_base(resource *resc, int 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; } diff --git a/knights/io_base.h b/knights/io_base.h index 2743f9c..364e5f6 100644 --- a/knights/io_base.h +++ b/knights/io_base.h @@ -43,7 +43,7 @@ public: 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, int ID); virtual ~io_base(); diff --git a/knights/io_engine.cpp b/knights/io_engine.cpp index ee44a96..c98e326 100644 --- a/knights/io_engine.cpp +++ b/knights/io_engine.cpp @@ -31,7 +31,7 @@ #include "proto_xboard.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; engine = NULL; diff --git a/knights/io_engine.h b/knights/io_engine.h index a263862..cedb875 100644 --- a/knights/io_engine.h +++ b/knights/io_engine.h @@ -36,7 +36,7 @@ class io_engine : public io_base Q_OBJECT TQ_OBJECT public: - io_engine( TQWidget *tqparent=NULL, resource *Rsrc=0 ); + io_engine( TQWidget *parent=NULL, resource *Rsrc=0 ); ~io_engine(); void Start( const int side ); diff --git a/knights/io_internet.cpp b/knights/io_internet.cpp index 2c11193..d1191f2 100644 --- a/knights/io_internet.cpp +++ b/knights/io_internet.cpp @@ -45,7 +45,7 @@ static const int TXT_Sht = 3; static const int TXT_Wsp = 4; static const int TXT_Not = 5; -io_internet::io_internet( TQWidget *tqparent, resource *rsrc ) +io_internet::io_internet( TQWidget *parent, resource *rsrc ) { myResource = rsrc; challenge = NULL; @@ -60,7 +60,7 @@ io_internet::io_internet( TQWidget *tqparent, resource *rsrc ) /* initialize various variables */ this->waiting_for_move_list = false; - this->myParent = tqparent; + this->myParent = parent; connected = false; /* we are not connected to a server */ /* create the login dialog and show it to the user */ diff --git a/knights/io_internet.h b/knights/io_internet.h index c6aef91..75afb63 100644 --- a/knights/io_internet.h +++ b/knights/io_internet.h @@ -75,7 +75,7 @@ class io_internet : public io_base Q_OBJECT TQ_OBJECT public: - io_internet(TQWidget *tqparent = NULL, resource *Rsrc = NULL); + io_internet(TQWidget *parent = NULL, resource *Rsrc = NULL); ~io_internet(); public slots: diff --git a/knights/knights.cpp b/knights/knights.cpp index 3ff2094..5cfae56 100644 --- a/knights/knights.cpp +++ b/knights/knights.cpp @@ -40,7 +40,7 @@ #include <tqframe.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; ResizeFlag = TRUE; diff --git a/knights/knights.h b/knights/knights.h index 772e37b..a9f3341 100644 --- a/knights/knights.h +++ b/knights/knights.h @@ -62,7 +62,7 @@ class Knights : public KMainWindow KAboutData *aboutData; resource *Resource; - Knights( KCmdLineArgs *Args, TQWidget* tqparent=0, const char *name=0 ); + Knights( KCmdLineArgs *Args, TQWidget* parent=0, const char *name=0 ); ~Knights(); bool init( void ); void initMenus( void ); diff --git a/knights/knightstextview.cpp b/knights/knightstextview.cpp index 7352206..dba45c7 100644 --- a/knights/knightstextview.cpp +++ b/knights/knightstextview.cpp @@ -31,7 +31,7 @@ #include <kprinter.h> #include <tqsimplerichtext.h> -KnightsTextView::KnightsTextView(TQWidget *tqparent, resource *Rsrc ) : TQTextBrowser(tqparent) +KnightsTextView::KnightsTextView(TQWidget *parent, resource *Rsrc ) : TQTextBrowser(parent) { myResource = Rsrc; setReadOnly( TRUE ); diff --git a/knights/knightstextview.h b/knights/knightstextview.h index 4141bbf..e7e83b5 100644 --- a/knights/knightstextview.h +++ b/knights/knightstextview.h @@ -33,7 +33,7 @@ class KnightsTextView : public TQTextBrowser Q_OBJECT TQ_OBJECT public: - KnightsTextView(TQWidget *tqparent, resource *Rsrc ); + KnightsTextView(TQWidget *parent, resource *Rsrc ); ~KnightsTextView(); void pageMove( TQt::Key key=Key_PageUp ); diff --git a/knights/list_pgn.cpp b/knights/list_pgn.cpp index 911e5fb..fd304ca 100644 --- a/knights/list_pgn.cpp +++ b/knights/list_pgn.cpp @@ -23,7 +23,7 @@ #include "resource.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->addColumn( i18n( "Result" ) ); diff --git a/knights/list_pgn.h b/knights/list_pgn.h index 105d9e9..e080dfd 100644 --- a/knights/list_pgn.h +++ b/knights/list_pgn.h @@ -37,7 +37,7 @@ class list_pgn : public TQVBox Q_OBJECT TQ_OBJECT public: - list_pgn(TQWidget *tqparent=0, const char *name=0); + list_pgn(TQWidget *parent=0, const char *name=0); void setURL( TQString URL ); void setProgress( const int ); TQString URL( void ) diff --git a/knights/match.cpp b/knights/match.cpp index c22f88d..68d2bc5 100644 --- a/knights/match.cpp +++ b/knights/match.cpp @@ -30,14 +30,14 @@ // 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; /* Init Children */ Record = new pgn( 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(); connect( Board, TQT_SIGNAL( leftClick(int) ), this, TQT_SLOT( slot_Select(int) ) ); connect( Board, TQT_SIGNAL( rightClick(int) ), this, TQT_SLOT( slot_Preview(int) ) ); diff --git a/knights/match.h b/knights/match.h index 9efc361..f8a3ec9 100644 --- a/knights/match.h +++ b/knights/match.h @@ -55,7 +55,7 @@ class match : public TQWidget char Draw_Offered[2]; public: - match(TQWidget *tqparent, match_param *param, resource *Rsrc); + match(TQWidget *parent, match_param *param, resource *Rsrc); ~match(); char inputOnMove( bool reverse=FALSE ); char input( char army ); diff --git a/knights/setpageaudio.cpp b/knights/setpageaudio.cpp index f9aac94..7016ecf 100644 --- a/knights/setpageaudio.cpp +++ b/knights/setpageaudio.cpp @@ -18,14 +18,14 @@ #include <tqregexp.h> #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; NewSounds = 0; changeTheme = FALSE; - BUTTON_enableAudio = new TQCheckBox( i18n( "Enable Audio" ), tqparent ); + BUTTON_enableAudio = new TQCheckBox( i18n( "Enable Audio" ), parent ); BUTTON_enableAudio->setChecked( Resource->OPTION_Audio ); addWidget( BUTTON_enableAudio ); connect( BUTTON_enableAudio, TQT_SIGNAL( toggled(bool) ), @@ -34,14 +34,14 @@ setPageAudio::setPageAudio(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(t GROUP_Theme = new TQGroupBox( 1, Qt::Vertical, i18n( "Audio Themes" ), - tqparent ); + parent ); addWidget( GROUP_Theme ); Current_Theme = new KComboBox ( GROUP_Theme ); buildThemeList(); connect( Current_Theme, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slot_currentTheme(int) ) ); - BOX_Main = new TQHBox( tqparent ); + BOX_Main = new TQHBox( parent ); addWidget( BOX_Main ); GROUP_Volume = new TQGroupBox( 3, Qt::Vertical, i18n( "Volume" ), BOX_Main ); diff --git a/knights/setpageaudio.h b/knights/setpageaudio.h index e73da64..2df144a 100644 --- a/knights/setpageaudio.h +++ b/knights/setpageaudio.h @@ -39,7 +39,7 @@ class setPageAudio : public TQVBoxLayout Q_OBJECT TQ_OBJECT public: - setPageAudio(TQWidget *tqparent=0, resource *Rsrc=0); + setPageAudio(TQWidget *parent=0, resource *Rsrc=0); ~setPageAudio(); void buildThemeList( void ); int NewSounds; diff --git a/knights/setpagedisplay.cpp b/knights/setpagedisplay.cpp index af7ffa4..a05b33a 100644 --- a/knights/setpagedisplay.cpp +++ b/knights/setpagedisplay.cpp @@ -26,7 +26,7 @@ #include <kfiledialog.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(); Resource = Rsrc; @@ -37,7 +37,7 @@ setPageDisplay::setPageDisplay(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLay refreshBoard = FALSE; rebuildConsole = FALSE; - TabParent = new TQTabWidget( tqparent, "setPageDisplay" ); + TabParent = new TQTabWidget( parent, "setPageDisplay" ); initTab1(); initTab2(); addWidget( TabParent ); diff --git a/knights/setpagedisplay.h b/knights/setpagedisplay.h index 7923211..e651cd5 100644 --- a/knights/setpagedisplay.h +++ b/knights/setpagedisplay.h @@ -43,7 +43,7 @@ class setPageDisplay : public TQVBoxLayout TQ_OBJECT public: - setPageDisplay(TQWidget *tqparent=0, resource *Rsrc=0); + setPageDisplay(TQWidget *parent=0, resource *Rsrc=0); ~setPageDisplay(); void buildThemeList( void ); int NewBoards; diff --git a/knights/setpageengines.cpp b/knights/setpageengines.cpp index afc9cb9..d64651c 100644 --- a/knights/setpageengines.cpp +++ b/knights/setpageengines.cpp @@ -17,14 +17,14 @@ #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; Engine_Dialog = NULL; Engines_ListView = NULL; - BOX_Current = new TQHBox( tqparent ); + BOX_Current = new TQHBox( parent ); addWidget( BOX_Current ); /* Engines to play White */ @@ -55,7 +55,7 @@ setPageEngines::setPageEngines(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLay GROUP_Engines = new TQGroupBox( 2, Qt::Horizontal, i18n( "Chess Engines" ), - tqparent ); + parent ); addWidget( GROUP_Engines ); Engines_ListView = new KListView( GROUP_Engines ); diff --git a/knights/setpageengines.h b/knights/setpageengines.h index e96704d..434ce8b 100644 --- a/knights/setpageengines.h +++ b/knights/setpageengines.h @@ -40,7 +40,7 @@ class setPageEngines : public TQVBoxLayout Q_OBJECT TQ_OBJECT public: - setPageEngines(TQWidget *tqparent=0, resource *Rsrc=0); + setPageEngines(TQWidget *parent=0, resource *Rsrc=0); ~setPageEngines(); public slots: diff --git a/knights/setpagegeneral.cpp b/knights/setpagegeneral.cpp index ada79fe..3a89bf4 100644 --- a/knights/setpagegeneral.cpp +++ b/knights/setpagegeneral.cpp @@ -19,21 +19,21 @@ #include <kicontheme.h> #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; GROUP_UserName = new TQGroupBox( 1, Qt::Horizontal, i18n( "Your Name:" ), - tqparent ); + parent ); addWidget( GROUP_UserName ); EDIT_UserName = new KLineEdit( GROUP_UserName ); EDIT_UserName->setText( Resource->Local_Player ); 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 ); 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, Qt::Vertical, i18n( "Append to Save File:" ), - tqparent ); + parent ); addWidget( GROUP_Reuse_PGN ); BUTTON_Reuse_PGN = new TQCheckBox( i18n( "Append to Save File" ), GROUP_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 ); 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 ); connect( BUTTON_Pause_On_Minimize, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Pause_On_Minimize(bool) ) ); 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 ); connect( BUTTON_Auto_Queen, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Auto_Queen(bool) ) ); 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 ); connect( BUTTON_Auto_Flag, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Auto_Flag(bool) ) ); diff --git a/knights/setpagegeneral.h b/knights/setpagegeneral.h index 9b9780a..5f82f65 100644 --- a/knights/setpagegeneral.h +++ b/knights/setpagegeneral.h @@ -39,7 +39,7 @@ class setPageGeneral : public TQVBoxLayout Q_OBJECT TQ_OBJECT public: - setPageGeneral(TQWidget *tqparent=0, resource *Rsrc=0); + setPageGeneral(TQWidget *parent=0, resource *Rsrc=0); ~setPageGeneral(); signals: void enableApply( void ); diff --git a/knights/setpageservers.cpp b/knights/setpageservers.cpp index e2f95fb..068e052 100644 --- a/knights/setpageservers.cpp +++ b/knights/setpageservers.cpp @@ -19,7 +19,7 @@ #include <tqstyle.h> #include <kicontheme.h> -setPageServers::setPageServers(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) +setPageServers::setPageServers(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent) { TQStyle& Style = TQApplication::tqstyle(); margin = Style.defaultFrameWidth(); @@ -27,7 +27,7 @@ setPageServers::setPageServers(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLay Servers_ListView = NULL; resetServer = FALSE; - TabParent = new TQTabWidget( tqparent, "setPageDisplay" ); + TabParent = new TQTabWidget( parent, "setPageDisplay" ); initTab1(); initTab2(); addWidget( TabParent ); diff --git a/knights/setpageservers.h b/knights/setpageservers.h index 03f0844..e248075 100644 --- a/knights/setpageservers.h +++ b/knights/setpageservers.h @@ -46,7 +46,7 @@ class setPageServers : public TQVBoxLayout Q_OBJECT TQ_OBJECT public: - setPageServers(TQWidget *tqparent=0, resource *Rsrc=0); + setPageServers(TQWidget *parent=0, resource *Rsrc=0); ~setPageServers(); bool resetServer; diff --git a/knights/tab_pgnview.cpp b/knights/tab_pgnview.cpp index 51bf57c..3290e1f 100644 --- a/knights/tab_pgnview.cpp +++ b/knights/tab_pgnview.cpp @@ -25,9 +25,9 @@ #include <kstddirs.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; blackImage = NULL; diff --git a/knights/tab_pgnview.h b/knights/tab_pgnview.h index d17a2ba..ca5f7a6 100644 --- a/knights/tab_pgnview.h +++ b/knights/tab_pgnview.h @@ -34,7 +34,7 @@ class tab_pgnView : public KnightsTextView Q_OBJECT TQ_OBJECT public: - tab_pgnView(pgn *tqparent, resource *Rsrc ); + tab_pgnView(pgn *parent, resource *Rsrc ); ~tab_pgnView(); void init( void ); diff --git a/knights/tab_seeklist.cpp b/knights/tab_seeklist.cpp index d5eb774..a3a7330 100644 --- a/knights/tab_seeklist.cpp +++ b/knights/tab_seeklist.cpp @@ -20,7 +20,7 @@ #include <kiconloader.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; seek = FALSE; diff --git a/knights/tab_seeklist.h b/knights/tab_seeklist.h index a93d09e..21cb8de 100644 --- a/knights/tab_seeklist.h +++ b/knights/tab_seeklist.h @@ -54,7 +54,7 @@ class tab_SeekList : public KListView TQStringList SF_07; 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(); public slots: diff --git a/knights/tabgrip.cpp b/knights/tabgrip.cpp index 9891df1..121ea21 100644 --- a/knights/tabgrip.cpp +++ b/knights/tabgrip.cpp @@ -19,7 +19,7 @@ #include "resource.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 ); setMinimumSize( 32, 12 ); diff --git a/knights/tabgrip.h b/knights/tabgrip.h index 116b38e..3ce66ad 100644 --- a/knights/tabgrip.h +++ b/knights/tabgrip.h @@ -29,7 +29,7 @@ class TabGrip : public TQWidget Q_OBJECT TQ_OBJECT public: - TabGrip(TQWidget *tqparent=0, const char *name=0); + TabGrip(TQWidget *parent=0, const char *name=0); ~TabGrip(); void paintEvent( TQPaintEvent* ); void mouseMoveEvent( TQMouseEvent *event ); diff --git a/knights/tabpage.cpp b/knights/tabpage.cpp index 959373e..d98eeb7 100644 --- a/knights/tabpage.cpp +++ b/knights/tabpage.cpp @@ -30,7 +30,7 @@ // TabPage::constructor // /////////////////////////////////////// -TabPage::TabPage( TQWidget *tqparent, TQWidget *child, resource *rsrc ) : TQVBox(tqparent) +TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(parent) { myResource = rsrc; myChild = child; @@ -118,7 +118,7 @@ void TabPage::tabDragged( const TQPoint &dest, const TQPoint &offset ) } else { - kdError() << "TabPage::tabDragged: Can not move without a tqparent TabBox." << endl; + kdError() << "TabPage::tabDragged: Can not move without a parent TabBox." << endl; } } /////////////////////////////////////// diff --git a/knights/tabpage.h b/knights/tabpage.h index 47f6b9c..5346c1e 100644 --- a/knights/tabpage.h +++ b/knights/tabpage.h @@ -37,7 +37,7 @@ class TabPage : public TQVBox Q_OBJECT TQ_OBJECT public: - TabPage( TQWidget *tqparent, TQWidget *child, resource *rsrc ); + TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ); ~TabPage(); void setCaption( const TQString& ); TQWidget* getChild( void ); diff --git a/knights/thinbuttons.cpp b/knights/thinbuttons.cpp index b619bad..52b308c 100644 --- a/knights/thinbuttons.cpp +++ b/knights/thinbuttons.cpp @@ -20,7 +20,7 @@ #include <tqpushbutton.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; rightClickID = 0; diff --git a/knights/thinbuttons.h b/knights/thinbuttons.h index 72d1dd0..8330f75 100644 --- a/knights/thinbuttons.h +++ b/knights/thinbuttons.h @@ -38,7 +38,7 @@ class thinbuttons : public TQFrame Q_OBJECT TQ_OBJECT public: - thinbuttons(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); + thinbuttons(TQWidget *parent=0, const char *name=0, resource *Rsrc=0); ~thinbuttons(); void mousePressEvent( TQMouseEvent *event ); void setButton( int id ); diff --git a/knights/wiz_setup.cpp b/knights/wiz_setup.cpp index f840d69..f3c3d74 100644 --- a/knights/wiz_setup.cpp +++ b/knights/wiz_setup.cpp @@ -24,7 +24,7 @@ #include <tqregexp.h> #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; steps = 0; diff --git a/knights/wiz_setup.h b/knights/wiz_setup.h index bd8f4a1..bfc5b44 100644 --- a/knights/wiz_setup.h +++ b/knights/wiz_setup.h @@ -39,7 +39,7 @@ class wiz_setup : public KWizard Q_OBJECT TQ_OBJECT 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(); protected slots: void slot_Work( const TQString& pageTitle ); |