summaryrefslogtreecommitdiffstats
path: root/knights/dlg_promote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/dlg_promote.cpp')
-rw-r--r--knights/dlg_promote.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/knights/dlg_promote.cpp b/knights/dlg_promote.cpp
index d98ad83..653ddf3 100644
--- a/knights/dlg_promote.cpp
+++ b/knights/dlg_promote.cpp
@@ -18,17 +18,17 @@
#include "definitions.h"
#include "dlg_promote.moc"
#include "knightspixcache.h"
-#include <qimage.h>
+#include <tqimage.h>
-dlg_promote::dlg_promote(QWidget *parent, const char *name, resource *Rsrc ) :
- QDialog( parent, name, TRUE, Qt::WStyle_Customize | Qt::WStyle_DialogBorder )
+dlg_promote::dlg_promote(TQWidget *tqparent, const char *name, resource *Rsrc ) :
+ TQDialog( tqparent, name, TRUE, TQt::WStyle_Customize | TQt::WStyle_DialogBorder )
{
Resource = Rsrc;
- Queen = new QPushButton( this );
- Bishop = new QPushButton( this );
- Knight = new QPushButton( this );
- Rook = new QPushButton( this );
- Description = new QLabel( this );
+ Queen = new TQPushButton( this );
+ Bishop = new TQPushButton( this );
+ Knight = new TQPushButton( this );
+ Rook = new TQPushButton( this );
+ Description = new TQLabel( this );
}
dlg_promote::~dlg_promote()
@@ -43,8 +43,8 @@ dlg_promote::~dlg_promote()
void dlg_promote::Init( bool Army )
{
KnightsPixCache *cache = Resource->pixCache;
- QImage tempImage;
- QPixmap buffer;
+ TQImage tempImage;
+ TQPixmap buffer;
int margin;
margin = 2;
@@ -65,38 +65,38 @@ void dlg_promote::Init( bool Army )
/* Queen */
buffer = cache->SquareLight;
- if( Army == WHITE ) bitBlt( &buffer, 0, 0, &cache->WhiteQueen, 0, 0, -1, -1, Qt::CopyROP, FALSE);
- else bitBlt( &buffer, 0, 0, &cache->BlackQueen, 0, 0, -1, -1, Qt::CopyROP, FALSE);
+ if( Army == WHITE ) bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->WhiteQueen), 0, 0, -1, -1, TQt::CopyROP, FALSE);
+ else bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->BlackQueen), 0, 0, -1, -1, TQt::CopyROP, FALSE);
Queen->setPixmap( buffer );
Queen->show();
/* Bishop */
buffer = cache->SquareDark;
- if( Army == WHITE ) bitBlt( &buffer, 0, 0, &cache->WhiteBishop, 0, 0, -1, -1, Qt::CopyROP, FALSE);
- else bitBlt( &buffer, 0, 0, &cache->BlackBishop, 0, 0, -1, -1, Qt::CopyROP, FALSE);
+ if( Army == WHITE ) bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->WhiteBishop), 0, 0, -1, -1, TQt::CopyROP, FALSE);
+ else bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->BlackBishop), 0, 0, -1, -1, TQt::CopyROP, FALSE);
Bishop->setPixmap( buffer );
Bishop->show();
/* Knight */
buffer = cache->SquareDark;
- if( Army == WHITE ) bitBlt( &buffer, 0, 0, &cache->WhiteKnight, 0, 0, -1, -1, Qt::CopyROP, FALSE);
- else bitBlt( &buffer, 0, 0, &cache->BlackKnight, 0, 0, -1, -1, Qt::CopyROP, FALSE);
+ if( Army == WHITE ) bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->WhiteKnight), 0, 0, -1, -1, TQt::CopyROP, FALSE);
+ else bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->BlackKnight), 0, 0, -1, -1, TQt::CopyROP, FALSE);
Knight->setPixmap( buffer );
Knight->show();
/* Rook */
buffer = cache->SquareLight;
- if( Army == WHITE ) bitBlt( &buffer, 0, 0, &cache->WhiteRook, 0, 0, -1, -1, Qt::CopyROP, FALSE);
- else bitBlt( &buffer, 0, 0, &cache->BlackRook, 0, 0, -1, -1, Qt::CopyROP, FALSE);
+ if( Army == WHITE ) bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->WhiteRook), 0, 0, -1, -1, TQt::CopyROP, FALSE);
+ else bitBlt( TQT_TQPAINTDEVICE(&buffer), 0, 0, TQT_TQPAINTDEVICE(&cache->BlackRook), 0, 0, -1, -1, TQt::CopyROP, FALSE);
Rook->setPixmap( buffer );
Rook->show();
Description->setText( i18n( "Promote your pawn to..." ) );
Description->show();
- connect( Queen, SIGNAL( clicked() ), this, SLOT( queenClick() ) );
- connect( Bishop, SIGNAL( clicked() ), this, SLOT( bishopClick() ) );
- connect( Knight, SIGNAL( clicked() ), this, SLOT( knightClick() ) );
- connect( Rook, SIGNAL( clicked() ), this, SLOT( rookClick() ) );
+ connect( Queen, TQT_SIGNAL( clicked() ), this, TQT_SLOT( queenClick() ) );
+ connect( Bishop, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bishopClick() ) );
+ connect( Knight, TQT_SIGNAL( clicked() ), this, TQT_SLOT( knightClick() ) );
+ connect( Rook, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rookClick() ) );
Queen->setFocus();
setCaption( i18n( "Pawn Promotion" ) );
}