diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 15:50:40 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 23:25:01 +0900 |
commit | 664580ffc694a1f9e7ab25d4636ca9696a38d958 (patch) | |
tree | daea2bbeea9cce36e9c8fe66afd1930e397e7ebd /libtdegames | |
parent | d62a856cb43f9a527dc936783d18fbfe4cc0d9c2 (diff) | |
download | tdegames-r14.1.4.tar.gz tdegames-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 66230b1cca2fa5c95886d8cf708829e4bfac2b10)
Diffstat (limited to 'libtdegames')
-rw-r--r-- | libtdegames/kcarddialog.h | 20 | ||||
-rw-r--r-- | libtdegames/kgame/COMPAT | 2 | ||||
-rw-r--r-- | libtdegames/kgame/dialogs/kgamedialog.h | 2 | ||||
-rw-r--r-- | libtdegames/kgame/dialogs/kgamedialogconfig.h | 4 | ||||
-rw-r--r-- | libtdegames/kgame/kgame.h | 10 | ||||
-rw-r--r-- | libtdegames/kgame/kgameio.h | 6 | ||||
-rw-r--r-- | libtdegames/kgame/kgamenetwork.h | 6 | ||||
-rw-r--r-- | libtdegames/kgame/kgameproperty.h | 6 | ||||
-rw-r--r-- | libtdegames/kgame/kmessageclient.h | 6 | ||||
-rw-r--r-- | libtdegames/kgame/kmessageio.h | 8 | ||||
-rw-r--r-- | libtdegames/kgame/kmessageserver.cpp | 2 | ||||
-rw-r--r-- | libtdegames/kgameprogress.cpp | 6 |
12 files changed, 39 insertions, 39 deletions
diff --git a/libtdegames/kcarddialog.h b/libtdegames/kcarddialog.h index 7f432eb3..68405689 100644 --- a/libtdegames/kcarddialog.h +++ b/libtdegames/kcarddialog.h @@ -130,13 +130,13 @@ public: * * @param flags what to show * - * @param randomDeck if this pointer is non-zero, *ok is set to TRUE if - * the user wants a random deck otherwise to FALSE. Use this in the + * @param randomDeck if this pointer is non-zero, *ok is set to true if + * the user wants a random deck otherwise to false. Use this in the * config file of your game to load a random deck on startup. * See @ref getRandomDeck() * - * @param randomCardDir if this pointer is non-zero, *ok is set to TRUE if - * the user wants a random card otherwise to FALSE. + * @param randomCardDir if this pointer is non-zero, *ok is set to true if + * the user wants a random card otherwise to false. * Use this in the config file of your game to load a random card * foregrounds on startup. * See @ref getRandomCardDir() @@ -271,24 +271,24 @@ public: void setupDialog(bool showResizeBox = false); /** - * @return TRUE if the selected deck is a random deck (i.e. the user checked - * the random checkbox) otherwise FALSE + * @return true if the selected deck is a random deck (i.e. the user checked + * the random checkbox) otherwise false **/ bool isRandomDeck() const; /** - * @return TRUE if the selected carddir is a random dir (i.e. the user - * checked the random checkbox) otherwise FALSE + * @return true if the selected carddir is a random dir (i.e. the user + * checked the random checkbox) otherwise false **/ bool isRandomCardDir() const; /** - * @return TRUE if the global checkbox was selected + * @return true if the global checkbox was selected **/ bool isGlobalDeck() const; /** - * @return TRUE if the global checkbox was selected + * @return true if the global checkbox was selected **/ bool isGlobalCardDir() const; diff --git a/libtdegames/kgame/COMPAT b/libtdegames/kgame/COMPAT index cfe81537..11457cd4 100644 --- a/libtdegames/kgame/COMPAT +++ b/libtdegames/kgame/COMPAT @@ -21,7 +21,7 @@ be made a virtual function? MH: This is done now. As this is a central function your programs will not run anymore. Fix: rename your slot which is connected to the above - signal to playerInput() and return TRUE in it. This will make it 100% + signal to playerInput() and return true in it. This will make it 100% compatible to the old version. I think this chagne is necessary especially as a signal is of no use here as you cannot read twice from the same stream. Therefore there can be only one function processing the input. If you really diff --git a/libtdegames/kgame/dialogs/kgamedialog.h b/libtdegames/kgame/dialogs/kgamedialog.h index 2530d665..cc123457 100644 --- a/libtdegames/kgame/dialogs/kgamedialog.h +++ b/libtdegames/kgame/dialogs/kgamedialog.h @@ -301,7 +301,7 @@ protected slots: /** * Called when the ADMIN status of this KGame client changes. See * KGameNetwork::signalAdminStatusChanged - * @param isAdmin TRUE if this client is now the ADMIN otherwise FALSE + * @param isAdmin true if this client is now the ADMIN otherwise false **/ void setAdmin(bool isAdmin); diff --git a/libtdegames/kgame/dialogs/kgamedialogconfig.h b/libtdegames/kgame/dialogs/kgamedialogconfig.h index 24f40949..6d1f9586 100644 --- a/libtdegames/kgame/dialogs/kgamedialogconfig.h +++ b/libtdegames/kgame/dialogs/kgamedialogconfig.h @@ -122,7 +122,7 @@ public: KPlayer* owner() const; /** - * @return True if the owner is ADMIN otherwise FALSE. See also + * @return True if the owner is ADMIN otherwise false. See also * @ref setAdmin **/ bool admin() const; @@ -157,7 +157,7 @@ public: * * @param parent Parent widget for this dialog. * @param initializeGUI If you really don't want to use the - * predefined widget and/or layout use FALSE here. Note that then none + * predefined widget and/or layout use false here. Note that then none * of the predefined widgets (currently only the name of the player) * will exist anymore. * diff --git a/libtdegames/kgame/kgame.h b/libtdegames/kgame/kgame.h index a6ab40f1..238d4865 100644 --- a/libtdegames/kgame/kgame.h +++ b/libtdegames/kgame/kgame.h @@ -521,7 +521,7 @@ signals: * removed. * @param player The player that is about to be removed. Add your new * KGameIO here - but only on <em>one</em> client! - * @param remove Set this to FALSE if you don't want this player to be + * @param remove Set this to false if you don't want this player to be * removed completely. **/ void signalReplacePlayerIO(KPlayer* player, bool* remove); @@ -679,11 +679,11 @@ protected: * the given player. * Note that you HAVE to overwrite this function. Otherwise your * game makes no sense at all. - * Generally you have to return TRUE in this function. Only then + * Generally you have to return true in this function. Only then * the game sequence is proceeded by calling @ref playerInputFinished * which in turn will check for game over or the next player * However, if you have a delayed move, because you e.g. move a - * card or a piece you want to return FALSE to pause the game sequence + * card or a piece you want to return false to pause the game sequence * and then manually call @ref playerInputFinished to resume it. * Example: * \code @@ -709,7 +709,7 @@ protected: * checks for game over and nextPlayer (in the case of turn base games) * are processed. * Call this manually if you have a delayed move, i.e. your playerInput - * function returns FALSE. If it returns true you need not do anything + * function returns false. If it returns true you need not do anything * here. * * @return the current player @@ -880,7 +880,7 @@ protected: * * @param stream a data stream where you can stream the game from * @param network is it a call from the network or from a file (unused but informative) - * @param saveplayers shall the players be saved too (should be TRUE) + * @param saveplayers shall the players be saved too (should be true) * * @return true? */ diff --git a/libtdegames/kgame/kgameio.h b/libtdegames/kgame/kgameio.h index b73d401b..0260b61d 100644 --- a/libtdegames/kgame/kgameio.h +++ b/libtdegames/kgame/kgameio.h @@ -137,11 +137,11 @@ signals: * when you get the turn status or when you lose it. * * The datastream has to be filled with a move. If you set (or leave) the - * send parameter to FALSE then nothing happens: the datastream will be - * ignored. If you set it to TRUE @ref sendInput is used to + * send parameter to false then nothing happens: the datastream will be + * ignored. If you set it to true @ref sendInput is used to * send the move. * - * Often you want to ignore this signal (leave send=FALSE) and send the + * Often you want to ignore this signal (leave send=false) and send the * message later. This is usually the case for a human player as he probably * doesn't react immediately. But you can still use this e.g. to notify the * player about the turn change. diff --git a/libtdegames/kgame/kgamenetwork.h b/libtdegames/kgame/kgamenetwork.h index 06a74731..0b7be6e8 100644 --- a/libtdegames/kgame/kgamenetwork.h +++ b/libtdegames/kgame/kgamenetwork.h @@ -61,7 +61,7 @@ public: virtual void Debug(); /** - * @return TRUE if this is a network game - i.e. you are either MASTER or + * @return true if this is a network game - i.e. you are either MASTER or * connected to a remote MASTER. **/ bool isNetwork() const; @@ -144,7 +144,7 @@ public: /** * @since 3.2 * @return The name of the host that we are currently connected to is - * isNetwork is TRUE and we are not the MASTER, i.e. if connectToServer + * isNetwork is true and we are not the MASTER, i.e. if connectToServer * was called. Otherwise this will return "localhost". **/ TQString hostName() const; @@ -381,7 +381,7 @@ signals: /** * This client gets or loses the admin status. * @see KMessageClient::adminStatusChanged - * @param isAdmin True if this client gets the ADMIN status otherwise FALSE + * @param isAdmin True if this client gets the ADMIN status otherwise false **/ void signalAdminStatusChanged(bool isAdmin); diff --git a/libtdegames/kgame/kgameproperty.h b/libtdegames/kgame/kgameproperty.h index 1b2c2fc3..76d389ac 100644 --- a/libtdegames/kgame/kgameproperty.h +++ b/libtdegames/kgame/kgameproperty.h @@ -338,8 +338,8 @@ protected: * This does <em>not</em> send the current value but the explicitly * given value. * - * @return TRUE if the message could be sent successfully, otherwise - * FALSE + * @return true if the message could be sent successfully, otherwise + * false **/ bool sendProperty(const TQByteArray& b); @@ -774,7 +774,7 @@ public: * other client) or when a game is loaded (and maybe on some other * events). * - * Also calls emitSignal if isEmittingSignal is TRUE. + * Also calls emitSignal if isEmittingSignal is true. * @param s The stream to read from **/ virtual void load(TQDataStream& s) diff --git a/libtdegames/kgame/kmessageclient.h b/libtdegames/kgame/kmessageclient.h index 456f79cc..c08b05e4 100644 --- a/libtdegames/kgame/kmessageclient.h +++ b/libtdegames/kgame/kmessageclient.h @@ -159,13 +159,13 @@ public: bool isConnected () const; /** - @return TRUE if isConnected() is true AND this is not a local (like + @return true if isConnected() is true AND this is not a local (like KMessageDirect) connection. */ bool isNetwork () const; /** - @return 0 if isConnected() is FALSE, otherwise the port number this client is + @return 0 if isConnected() is false, otherwise the port number this client is connected to. See also KMessageIO::peerPort and TQSocket::peerPort. @since 3.2 */ @@ -173,7 +173,7 @@ public: /** @since 3.2 - @return "localhost" if isConnected() is FALSE, otherwise the hostname this client is + @return "localhost" if isConnected() is false, otherwise the hostname this client is connected to. See also KMessageIO::peerName() and TQSocket::peerName(). */ TQString peerName() const; diff --git a/libtdegames/kgame/kmessageio.h b/libtdegames/kgame/kmessageio.h index e503da6d..42acaf41 100644 --- a/libtdegames/kgame/kmessageio.h +++ b/libtdegames/kgame/kmessageio.h @@ -246,7 +246,7 @@ public: virtual TQString peerName () const; /** - @return TRUE as this is a network IO. + @return true as this is a network IO. */ bool isNetwork() const { return true; } @@ -322,7 +322,7 @@ public: /** - @return FALSE as this is no network IO. + @return false as this is no network IO. */ bool isNetwork() const { return false; } @@ -361,7 +361,7 @@ class KMessageProcess : public KMessageIO void writeToProcess(); /** - @return FALSE as this is no network IO. + @return false as this is no network IO. */ bool isNetwork() const { return false; } @@ -400,7 +400,7 @@ class KMessageFilePipe : public KMessageIO void exec(); /** - @return FALSE as this is no network IO. + @return false as this is no network IO. */ bool isNetwork() const { return false; } diff --git a/libtdegames/kgame/kmessageserver.cpp b/libtdegames/kgame/kmessageserver.cpp index e8617f57..f74628cb 100644 --- a/libtdegames/kgame/kmessageserver.cpp +++ b/libtdegames/kgame/kmessageserver.cpp @@ -376,7 +376,7 @@ void KMessageServer::getReceivedMessage (const TQByteArray &msg) d->mMessageQueue.enqueue (new MessageBuffer (clientID, msg)); if (!d->mTimer.isActive()) - d->mTimer.start(0); // AB: should be , TRUE i guess + d->mTimer.start(0); // AB: should be , true i guess } void KMessageServer::processOneMessage () diff --git a/libtdegames/kgameprogress.cpp b/libtdegames/kgameprogress.cpp index f3b48c5a..ccba19d5 100644 --- a/libtdegames/kgameprogress.cpp +++ b/libtdegames/kgameprogress.cpp @@ -70,7 +70,7 @@ void KGameProgress::initialize() use_supplied_bar_color = false; bar_pixmap = 0; bar_style = Solid; - text_enabled = TRUE; + text_enabled = true; setBackgroundMode( PaletteBackground ); connect(kapp, TQ_SIGNAL(appearanceChanged()), this, TQ_SLOT(paletteChange())); paletteChange(); @@ -196,13 +196,13 @@ int KGameProgress::recalcValue(int range) void KGameProgress::valueChange() { - repaint(contentsRect(), FALSE); + repaint(contentsRect(), false); emit percentageChanged(recalcValue(100)); } void KGameProgress::rangeChange() { - repaint(contentsRect(), FALSE); + repaint(contentsRect(), false); emit percentageChanged(recalcValue(100)); } |