diff options
Diffstat (limited to 'lskat')
-rw-r--r-- | lskat/lskat/KConnectEntry.cpp | 6 | ||||
-rw-r--r-- | lskat/lskat/KEInput.cpp | 32 | ||||
-rw-r--r-- | lskat/lskat/KRemoteConnect.cpp | 8 | ||||
-rw-r--r-- | lskat/lskat/TDEProcessConnect.cpp | 2 | ||||
-rw-r--r-- | lskat/lskat/lskatview.cpp | 4 | ||||
-rw-r--r-- | lskat/lskat/msgdlg.cpp | 6 | ||||
-rw-r--r-- | lskat/lskat/namedlg.cpp | 2 | ||||
-rw-r--r-- | lskat/lskat/namedlg.h | 2 | ||||
-rw-r--r-- | lskat/lskat/networkdlg.cpp | 2 |
9 files changed, 32 insertions, 32 deletions
diff --git a/lskat/lskat/KConnectEntry.cpp b/lskat/lskat/KConnectEntry.cpp index ba714b58..750a4405 100644 --- a/lskat/lskat/KConnectEntry.cpp +++ b/lskat/lskat/KConnectEntry.cpp @@ -95,7 +95,7 @@ bool KConnectEntry::SendMsg(KEMessage *msg) bool KConnectEntry::Exit() { bool result; - result=FALSE; + result=false; switch(type) { case KG_INPUTTYPE_INTERACTIVE: @@ -110,7 +110,7 @@ bool KConnectEntry::Exit() result=connect.p->Exit(); delete connect.p; break; - default: result=FALSE; + default: result=false; break; } return result; @@ -135,7 +135,7 @@ bool KConnectEntry::Init(KG_INPUTTYPE stype,int id,KEMessage *msg) connect.p=new TDEProcessConnect; result=connect.p->Init(id,msg); break; - default: result=FALSE; + default: result=false; break; } return result; diff --git a/lskat/lskat/KEInput.cpp b/lskat/lskat/KEInput.cpp index 91377f38..21c299ae 100644 --- a/lskat/lskat/KEInput.cpp +++ b/lskat/lskat/KEInput.cpp @@ -26,7 +26,7 @@ KEInput::KEInput(TQObject * parent) : TQObject(parent,0) { number_of_inputs=0; - locked=FALSE; + locked=false; previous_input=-1; next_input=-1; cTimer=0; @@ -60,9 +60,9 @@ int KEInput::QueryPrevious() bool KEInput::IsInput(int no) { - if (no>=number_of_inputs || no<0) return FALSE; - if (QueryType(no)==0) return FALSE; - return TRUE; + if (no>=number_of_inputs || no<0) return false; + if (QueryType(no)==0) return false; + return true; } // Default is the type of the current player @@ -154,7 +154,7 @@ bool KEInput::SetInputDevice(int no, KG_INPUTTYPE type,KEMessage *msg) bool KEInput::RemoveInput(int no) { bool result; - if (no>=number_of_inputs || no<0) return FALSE; + if (no>=number_of_inputs || no<0) return false; result=playerArray[no].Exit(); // shrink if last entry is removed if (no==number_of_inputs-1) @@ -169,9 +169,9 @@ bool KEInput::RemoveInput(int no) // Sets a new player and sends it a message bool KEInput::Next(int number, bool force) { - if (locked && !force) return FALSE; - if (!IsInput(number)) return FALSE; - locked=TRUE; + if (locked && !force) return false; + if (!IsInput(number)) return false; + locked=true; // printf("KEInput::Next %d OK ... lock set!!\n",number); @@ -191,7 +191,7 @@ bool KEInput::Next(int number, bool force) if (cTimer) delete cTimer; // Ouch... cTimer=new TQTimer(this); connect(cTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(slotTimerNextRemote())); - cTimer->start(K_INPUT_DELAY,TRUE); + cTimer->start(K_INPUT_DELAY,true); } else { @@ -205,14 +205,14 @@ bool KEInput::Next(int number, bool force) // delay non interactive move to allow interactive inout cTimer=new TQTimer(this); connect(cTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(slotTimerNextProcess())); - cTimer->start(K_INPUT_DELAY,TRUE); + cTimer->start(K_INPUT_DELAY,true); } else playerArray[number].QueryProcessConnect()->Next(); break; - default: return FALSE; + default: return false; } - return TRUE; + return true; } void KEInput::slotTimerNextRemote() @@ -263,20 +263,20 @@ bool KEInput::SetInput(KEMessage *msg,int number) /* if (!locked) { - printf("KEINput:SetInput not locked(should be) returning FALSE\n"); - return FALSE; + printf("KEINput:SetInput not locked(should be) returning false\n"); + return false; } */ if (number<0 || number>=number_of_inputs) number=next_input; // automatically select player // KEMessage *mMsg= new KEMessage; // evt if (mMsg) delete mMsg; // *mMsg=*msg; - // locked=FALSE; + // locked=false; // printf("**** KEInput: emitting signalReceiveInput 474\n"); emit signalReceiveInput(msg,number); // emit signalReceiveInput(mMsg); // delete mMsg; - return TRUE; + return true; } void KEInput::Lock() diff --git a/lskat/lskat/KRemoteConnect.cpp b/lskat/lskat/KRemoteConnect.cpp index d3310324..f8c91e70 100644 --- a/lskat/lskat/KRemoteConnect.cpp +++ b/lskat/lskat/KRemoteConnect.cpp @@ -108,8 +108,8 @@ bool tryserver; if (!kSocket) return false; if (kSocket->socket()!=-1) // success { - kSocket->enableRead(TRUE); - //kSocket->enableWrite(TRUE); + kSocket->enableRead(true); + //kSocket->enableWrite(true); connect(kSocket,TQ_SIGNAL(closeEvent(TDESocket *)), this,TQ_SLOT(socketClosed(TDESocket *))); connect(kSocket,TQ_SIGNAL(readEvent(TDESocket *)), @@ -204,8 +204,8 @@ void KRemoteConnect::socketRequest(TDESocket *sock) kSocket=sock; if (kSocket->socket()!=-1) // success { - kSocket->enableRead(TRUE); - //kSocket->enableWrite(TRUE); + kSocket->enableRead(true); + //kSocket->enableWrite(true); connect(kSocket,TQ_SIGNAL(closeEvent(TDESocket *)), this,TQ_SLOT(socketClosed(TDESocket *))); connect(kSocket,TQ_SIGNAL(readEvent(TDESocket *)), diff --git a/lskat/lskat/TDEProcessConnect.cpp b/lskat/lskat/TDEProcessConnect.cpp index 286e6942..541a84a2 100644 --- a/lskat/lskat/TDEProcessConnect.cpp +++ b/lskat/lskat/TDEProcessConnect.cpp @@ -84,7 +84,7 @@ bool TDEProcessConnect::Init(int id,KEMessage *msg) this, TQ_SLOT(slotWroteStdin(TDEProcess *))); */ - // TRUE if ok + // true if ok running=process->start(TDEProcess::NotifyOnExit,TDEProcess::All); if (running && msg && msg->QueryNumberOfKeys()>0) diff --git a/lskat/lskat/lskatview.cpp b/lskat/lskat/lskatview.cpp index c206e108..f78967cd 100644 --- a/lskat/lskat/lskatview.cpp +++ b/lskat/lskat/lskatview.cpp @@ -125,7 +125,7 @@ LSkatView::LSkatView(TQWidget *parent, const char *name) : TQWidget(parent, name introTimer=new TQTimer(this); introTimer->stop(); connect(introTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(introTimerReady())); - introTimer->start(75,FALSE); + introTimer->start(75,false); for (int i=0;i<NO_OF_CARDS;i++) { @@ -857,7 +857,7 @@ void LSkatView::InitMove(int player,int mx,int my) cardmovey=my+2*player; cardmoveunder=getDocument()->GetCard(player,mx+4*my,getDocument()->GetHeight(player,mx+4*my)); introTimer->stop(); - moveTimer->start(MOVE_TIMER_DELAY,FALSE); + moveTimer->start(MOVE_TIMER_DELAY,false); cardmovecnt=0; cardorigin=calcCardPos(mx,my+2*player); if (getDocument()->GetCurrentPlayer()==0) diff --git a/lskat/lskat/msgdlg.cpp b/lskat/lskat/msgdlg.cpp index 4788318b..fa9692cc 100644 --- a/lskat/lskat/msgdlg.cpp +++ b/lskat/lskat/msgdlg.cpp @@ -38,7 +38,7 @@ // Create the dialog for changing the player names MsgDlg::MsgDlg( TQWidget *parent, const char *name,const char * /*sufi */ ) - : TQDialog( parent, name,TRUE ) + : TQDialog( parent, name,true ) { setCaption(i18n("Send Message to Remote Player")); setMinimumSize(400,160); @@ -58,12 +58,12 @@ MsgDlg::MsgDlg( TQWidget *parent, const char *name,const char * /*sufi */ ) PushButton = new TQPushButton( i18n("Send" ), this, "PushButton_1" ); PushButton->setGeometry( 20, 120, 65, 30 ); connect( PushButton, TQ_SIGNAL(clicked()), TQ_SLOT(accept()) ); - PushButton->setAutoRepeat( FALSE ); + PushButton->setAutoRepeat( false ); PushButton = new KPushButton( KStdGuiItem::cancel(), this, "PushButton_2" ); PushButton->setGeometry( 305, 120, 65, 30 ); connect( PushButton, TQ_SIGNAL(clicked()), TQ_SLOT(reject()) ); - PushButton->setAutoRepeat( FALSE ); + PushButton->setAutoRepeat( false ); } TQString MsgDlg::GetMsg() diff --git a/lskat/lskat/namedlg.cpp b/lskat/lskat/namedlg.cpp index 2cbe6ef1..1f9ae93f 100644 --- a/lskat/lskat/namedlg.cpp +++ b/lskat/lskat/namedlg.cpp @@ -23,7 +23,7 @@ * name 'name' and widget flags set to 'f' * * The dialog will by default be modeless, unless you set 'modal' to - * TRUE to construct a modal dialog. + * true to construct a modal dialog. */ NameDlg::NameDlg( TQWidget *parent, const char *name,bool /* modal */, WFlags /* fl */ ) : KDialogBase( Plain, i18n("Configure Names"), Ok|Cancel, Ok, diff --git a/lskat/lskat/namedlg.h b/lskat/lskat/namedlg.h index 16c09398..4aff2fde 100644 --- a/lskat/lskat/namedlg.h +++ b/lskat/lskat/namedlg.h @@ -24,7 +24,7 @@ class NameDlg : public KDialogBase public: - NameDlg( TQWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0 ); + NameDlg( TQWidget* parent = 0, const char* name = 0, bool modal = true, WFlags fl = 0 ); ~NameDlg(); void SetNames(TQString n1,TQString n2); void GetNames(TQString &n1,TQString &n2); diff --git a/lskat/lskat/networkdlg.cpp b/lskat/lskat/networkdlg.cpp index 12b19569..6e0b003e 100644 --- a/lskat/lskat/networkdlg.cpp +++ b/lskat/lskat/networkdlg.cpp @@ -26,7 +26,7 @@ extern const char* LSKAT_SERVICE; // Create the dialog NetworkDlg::NetworkDlg( TQWidget *parent, const char *name ) - : NetworkDlgBase( parent, name, TRUE ) + : NetworkDlgBase( parent, name, true ) { browser = new DNSSD::ServiceBrowser(TQString::fromLatin1(LSKAT_SERVICE)); connect(browser,TQ_SIGNAL(finished()),TQ_SLOT(gamesFound())); |