summaryrefslogtreecommitdiffstats
path: root/klatin
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 18:23:54 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 23:24:46 +0900
commitfd06779f93512aa68988b165260941e6d3f1ff0f (patch)
treebb06d03e494a97eae182a18562677e2e5b17bed5 /klatin
parentf1a4e21e9735931cfb58943bb1a3da4353e14302 (diff)
downloadtdeedu-fd06779f.tar.gz
tdeedu-fd06779f.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 35149ce0bd6a7e9a315a395291ed4b59499b63cf)
Diffstat (limited to 'klatin')
-rw-r--r--klatin/klatin/klatin.cpp8
-rw-r--r--klatin/klatin/klatin.kcfg2
-rw-r--r--klatin/klatin/klatingrammar.cpp2
-rw-r--r--klatin/klatin/klatinverbs.cpp2
-rw-r--r--klatin/klatin/klatinvocab.cpp18
5 files changed, 16 insertions, 16 deletions
diff --git a/klatin/klatin/klatin.cpp b/klatin/klatin/klatin.cpp
index 3375603d..8e6d7a6d 100644
--- a/klatin/klatin/klatin.cpp
+++ b/klatin/klatin/klatin.cpp
@@ -87,7 +87,7 @@ void KLatin::loadVocab()
// Set this widget as the central widget
setCentralWidget(klatinvocabsection);
- updateSection(FALSE);
+ updateSection(false);
// When the child emits the signal exitted(),
// then reset the GUI to go back to the menu
@@ -107,7 +107,7 @@ void KLatin::loadGrammar()
slotWriteMsg(i18n("Grammar"));
// Disable all the menu entries under Section/
- updateSection(FALSE);
+ updateSection(false);
// Set this widget as the central widget
setCentralWidget(klatingrammarsection);
@@ -135,7 +135,7 @@ void KLatin::loadVerbs()
slotWriteMsg(i18n("Verbs"));
// Disable all the menu entries under Section/
- updateSection(FALSE);
+ updateSection(false);
// Set this widget as the central widget
setCentralWidget(klatinverbssection);
@@ -194,7 +194,7 @@ void KLatin::resetGUI()
connect(klatinchoose->QuitButton, TQ_SIGNAL(clicked()), kapp, TQ_SLOT(quit()));
// Enable all the menu entries under Section/
- updateSection(TRUE);
+ updateSection(true);
// Use XML GUI to construct the menubar
setupGUI();
diff --git a/klatin/klatin/klatin.kcfg b/klatin/klatin/klatin.kcfg
index 38431aa5..d2f21767 100644
--- a/klatin/klatin/klatin.kcfg
+++ b/klatin/klatin/klatin.kcfg
@@ -17,7 +17,7 @@
filename += m_language;
TQDir check(filename);
- if (check.exists() == FALSE) {
+ if (!check.exists()) {
m_language = "en";
}
kdDebug()&lt;&lt; m_language &lt;&lt;endl;
diff --git a/klatin/klatin/klatingrammar.cpp b/klatin/klatin/klatingrammar.cpp
index c9a67814..f6e0d616 100644
--- a/klatin/klatin/klatingrammar.cpp
+++ b/klatin/klatin/klatingrammar.cpp
@@ -115,7 +115,7 @@ void KLatinGrammar::loadDatabase()
// Check whether the file actually exists
// If not - warn user.
- if (TQFile::exists(locate("data", file)) == FALSE) {
+ if (!TQFile::exists(locate("data", file))) {
KMessageBox::error(this, i18n("Could not load grammar-definition file, check KLatin installation."), i18n("Error with KLatin"));
QuestionLabel->setText(i18n("Error."));
return;
diff --git a/klatin/klatin/klatinverbs.cpp b/klatin/klatin/klatinverbs.cpp
index f1a3880d..5ecc8383 100644
--- a/klatin/klatin/klatinverbs.cpp
+++ b/klatin/klatin/klatinverbs.cpp
@@ -105,7 +105,7 @@ void KLatinVerbs::loadDatabase()
TQString fileName = "klatin/data/verbs/" + databaseFile;
- if (TQFile::exists(locate("data", fileName)) == FALSE) {
+ if (!TQFile::exists(locate("data", fileName))) {
KMessageBox::error(this, i18n("Could not load verb-definition file, check KLatin installation."), i18n("Error with KLatin"));
goBack();
}
diff --git a/klatin/klatin/klatinvocab.cpp b/klatin/klatin/klatinvocab.cpp
index 8181d7af..6c83d22b 100644
--- a/klatin/klatin/klatinvocab.cpp
+++ b/klatin/klatin/klatinvocab.cpp
@@ -86,7 +86,7 @@ void KLatinVocab::parseVocab(TQString customFile)
// Check whether file exists or not
// If not then regenerate working default
- if (TQFile::exists(fileName) == FALSE) {
+ if (!TQFile::exists(fileName)) {
TDEConfigBase *globalConf = TDEGlobal::config();
globalConf->setGroup("Locale");
@@ -98,7 +98,7 @@ void KLatinVocab::parseVocab(TQString customFile)
TQDir checkLang(fileNameLang);
- if (checkLang.exists() == FALSE) {
+ if (!checkLang.exists()) {
language = "en";
}
@@ -106,7 +106,7 @@ void KLatinVocab::parseVocab(TQString customFile)
TQString defaultFile = (fileNameLang + "/" + vocabDirectory[0]);
- if (TQFile::exists(defaultFile) == FALSE) {
+ if (!TQFile::exists(defaultFile)) {
KMessageBox::error(this, i18n("Could not load vocabulary file; there is a problem with your KLatin installation."), i18n("Error with KLatin"));
kapp->quit();
} else {
@@ -211,7 +211,7 @@ void KLatinVocab::newQuestion()
// Initialise a couple of temporary variables
int i = 0, j = 0, tempRand[4];
- bool override = FALSE;
+ bool override = false;
// Assign m_choiceWords with the 4 words
// to go into the multiple choice. Make sure
@@ -242,15 +242,15 @@ void KLatinVocab::newQuestion()
}
// Make sure the actual answer isn't already in m_choiceWords
- // If it is, set override to be TRUE
+ // If it is, set override to be true
for (i = 0; i < 4; i++) {
if (m_choiceWords[4] == m_choiceWords[i]) {
m_lastAnswerNumber = i;
- override = TRUE;
+ override = true;
}
}
- bool exitLoop = FALSE;
+ bool exitLoop = false;
// Override a random variable with the correct
// answer
@@ -260,7 +260,7 @@ void KLatinVocab::newQuestion()
if (answerNumber != m_lastAnswerNumber) {
m_choiceWords[answerNumber] = m_texts[randNum].second;
m_lastAnswerNumber = answerNumber;
- exitLoop = TRUE;
+ exitLoop = true;
} else {
answerNumber = (random() % 3);
}
@@ -348,7 +348,7 @@ void KLatinVocab::resultsDialog()
{
// Show the results dialog
- results = new KLatinResultsDialog(this, 0, TRUE);
+ results = new KLatinResultsDialog(this, 0, true);
results->CloseButton->setGuiItem(KStdGuiItem::close());
int temp = Score2Label->text().toInt();