summaryrefslogtreecommitdiffstats
path: root/kverbos/kverbos/kverbos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kverbos/kverbos/kverbos.cpp')
-rw-r--r--kverbos/kverbos/kverbos.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/kverbos/kverbos/kverbos.cpp b/kverbos/kverbos/kverbos.cpp
index 96d6930a..234e43a0 100644
--- a/kverbos/kverbos/kverbos.cpp
+++ b/kverbos/kverbos/kverbos.cpp
@@ -39,7 +39,7 @@
#include "kfeedercontrol.h"
#include "prefs.h"
-// ID Nummern für die Statuszeile
+// ID Nummern f�r die Statuszeile
#define ID_STATUS_MSG 1
#define ID_TRAINED_MSG 2
#define ID_CORRECT_MSG 3
@@ -55,7 +55,7 @@ KVerbosApp::KVerbosApp(TQWidget* , const char* name):KMainWindow (0, name)
start_logo->show();
start_logo->raise();
- // die Instanzen von kverbos zählen
+ // die Instanzen von kverbos z�hlen
kverbosCounter++;
config=kapp->config();
@@ -82,7 +82,7 @@ KVerbosApp::KVerbosApp(TQWidget* , const char* name):KMainWindow (0, name)
editPaste->setEnabled(false);
userResults->setEnabled(false);
- // El programa ha leído las opciones del programa. Entonces puedo iniciar el objeto
+ // El programa ha le�do las opciones del programa. Entonces puedo iniciar el objeto
// por la control de KFeeder.
if (useKFeeder)
{
@@ -98,17 +98,17 @@ KVerbosApp::KVerbosApp(TQWidget* , const char* name):KMainWindow (0, name)
else
kfeederControl = 0;
- // das Logo wieder löschen
+ // das Logo wieder l�schen
delete start_logo;
}
KVerbosApp::~KVerbosApp()
{
- // den Instanzenzähler zurücksetzen
+ // den Instanzenz�hler zur�cksetzen
kverbosCounter--;
if (kfeederControl)
{
- disconnect(view, TQT_SIGNAL(informKFeeder(int)), this, TQT_SLOT(slotFeedIt(int)));
+ disconnect(view, TQT_SIGNAL(informKFeeder(int)), TQT_TQOBJECT(this), TQT_SLOT(slotFeedIt(int)));
delete kfeederControl;
kfeederControl = 0;
};
@@ -116,25 +116,25 @@ KVerbosApp::~KVerbosApp()
void KVerbosApp::initActions()
{
- fileNewWindow = new KAction(i18n("New &Window"), "window_new.png", 0, this, TQT_SLOT(slotFileNewWindow()), actionCollection(),"file_new_window");
- fileNew = KStdAction::openNew(this, TQT_SLOT(slotFileNew()), actionCollection());
- fileOpen = KStdAction::open(this, TQT_SLOT(slotFileOpen()), actionCollection());
- fileOpenRecent = KStdAction::openRecent(this, TQT_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
- fileOpenStandard = new KAction(i18n("Open &Standard Verb File"), "fileopen.png", 0, this, TQT_SLOT(slotFileOpenStandard()), actionCollection(),"file_open_standard");
- fileSave = KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection());
- fileSaveAs = KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
- fileClose = KStdAction::close(this, TQT_SLOT(slotFileClose()), actionCollection());
- filePrint = KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection());
- fileQuit = KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
- editCut = KStdAction::cut(this, TQT_SLOT(slotEditCut()), actionCollection());
- editCopy = KStdAction::copy(this, TQT_SLOT(slotEditCopy()), actionCollection());
- editPaste = KStdAction::paste(this, TQT_SLOT(slotEditPaste()), actionCollection());
- editErfassen = new KAction(i18n("E&nter New Verb..."), 0, 0, this, TQT_SLOT(slotEditErfassen()), actionCollection(),"edit_erfassen");
- editBearbeiten = new KAction(i18n("&Edit Verb List..."), 0, 0, this, TQT_SLOT(slotEditBearbeiten()), actionCollection(), "edit_bearbeiten");
-
- settingOptions = new KAction(i18n("&Configure KVerbos..."), 0, 0, this, TQT_SLOT(slotSettingsOptions()), actionCollection(), "settings_options");
- userUsername = new KAction(i18n("&Username..."), 0, 0, this, TQT_SLOT(slotSettingsUsername()), actionCollection(), "user_username");
- userResults = new KAction(i18n("&Results"), 0, 0, this, TQT_SLOT(slotUserResults()), actionCollection(), "user_results");
+ fileNewWindow = new KAction(i18n("New &Window"), "window_new.png", 0, TQT_TQOBJECT(this), TQT_SLOT(slotFileNewWindow()), actionCollection(),"file_new_window");
+ fileNew = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(slotFileNew()), actionCollection());
+ fileOpen = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpen()), actionCollection());
+ fileOpenRecent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
+ fileOpenStandard = new KAction(i18n("Open &Standard Verb File"), "fileopen.png", 0, TQT_TQOBJECT(this), TQT_SLOT(slotFileOpenStandard()), actionCollection(),"file_open_standard");
+ fileSave = KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(slotFileSave()), actionCollection());
+ fileSaveAs = KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(slotFileSaveAs()), actionCollection());
+ fileClose = KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(slotFileClose()), actionCollection());
+ filePrint = KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection());
+ fileQuit = KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotFileQuit()), actionCollection());
+ editCut = KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(slotEditCut()), actionCollection());
+ editCopy = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotEditCopy()), actionCollection());
+ editPaste = KStdAction::paste(TQT_TQOBJECT(this), TQT_SLOT(slotEditPaste()), actionCollection());
+ editErfassen = new KAction(i18n("E&nter New Verb..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditErfassen()), actionCollection(),"edit_erfassen");
+ editBearbeiten = new KAction(i18n("&Edit Verb List..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditBearbeiten()), actionCollection(), "edit_bearbeiten");
+
+ settingOptions = new KAction(i18n("&Configure KVerbos..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSettingsOptions()), actionCollection(), "settings_options");
+ userUsername = new KAction(i18n("&Username..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSettingsUsername()), actionCollection(), "user_username");
+ userResults = new KAction(i18n("&Results"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotUserResults()), actionCollection(), "user_results");
fileNewWindow->setToolTip(i18n("Opens a new application window"));
fileOpenStandard->setToolTip(i18n("Opens the standard KVerbos verb file"));
@@ -182,8 +182,8 @@ void KVerbosApp::initDocument()
{
doc = new KVerbosDoc(this);
doc->newDocument();
- connect(doc, TQT_SIGNAL(anzahlVerbenGeaendert(int)), this, TQT_SLOT(slotStatusVerbMsg(int)));
- connect(this, TQT_SIGNAL(testAnzahl(int)), this, TQT_SLOT(slotStatusVerbMsg(int)));
+ connect(doc, TQT_SIGNAL(anzahlVerbenGeaendert(int)), TQT_TQOBJECT(this), TQT_SLOT(slotStatusVerbMsg(int)));
+ connect(this, TQT_SIGNAL(testAnzahl(int)), TQT_TQOBJECT(this), TQT_SLOT(slotStatusVerbMsg(int)));
}
void KVerbosApp::initView()
@@ -197,9 +197,9 @@ void KVerbosApp::initView()
setCentralWidget(view);
setCaption(doc->URL().fileName(),false);
//
- connect(view, TQT_SIGNAL(numberTrainedChanged(int)), this, TQT_SLOT(slotStatusTrainedMsg(int)));
- connect(view, TQT_SIGNAL(numberCorrectChanged(int)), this, TQT_SLOT(slotStatusCorrectMsg(int)));
- connect(view, TQT_SIGNAL(informKFeeder(int)), this, TQT_SLOT(slotFeedIt(int)));
+ connect(view, TQT_SIGNAL(numberTrainedChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(slotStatusTrainedMsg(int)));
+ connect(view, TQT_SIGNAL(numberCorrectChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(slotStatusCorrectMsg(int)));
+ connect(view, TQT_SIGNAL(informKFeeder(int)), TQT_TQOBJECT(this), TQT_SLOT(slotFeedIt(int)));
}
void KVerbosApp::openDocumentFile(const KURL& url)
@@ -222,7 +222,7 @@ void KVerbosApp::saveOptions()
fileOpenRecent->saveEntries(config,"Recent Files");
// Meine eigenen Optionen
- // Die zum Lernen ausgewählten Zeiten
+ // Die zum Lernen ausgew�hlten Zeiten
config->setGroup("tiempos");
TQString key;
for (int i = presente; i<MAX_TIEMPOS; i++)
@@ -250,7 +250,7 @@ void KVerbosApp::readOptions()
fileOpenRecent->loadEntries(config,"Recent Files");
// Meine eigenen Optionen
- // Die zum Lernen ausgewählten Zeiten
+ // Die zum Lernen ausgew�hlten Zeiten
config->setGroup("tiempos");
TQString key;
for (int i = presente; i<MAX_TIEMPOS; i++)
@@ -258,10 +258,10 @@ void KVerbosApp::readOptions()
key.setNum(i);
TQString options = config->readEntry ( key, "true false false");
int pos1 = 0;
- int pos2 = options.find (' ', pos1, false);
+ int pos2 = options.tqfind (' ', pos1, false);
timeOptions[i][0] = (options.left(pos2) == "true") ? true : false;
pos1 = pos2 + 1;
- pos2 = options.find (' ', pos1, false);
+ pos2 = options.tqfind (' ', pos1, false);
timeOptions[i][1] = (options.mid(pos1,pos2-pos1) == "true") ? true : false;
timeOptions[i][2] = (options.right(options.length()-pos2-1) == "true") ? true : false;
};
@@ -385,7 +385,7 @@ void KVerbosApp::slotFileOpen()
}
else
{
- KURL url=KFileDialog::getOpenURL(TQString::null,
+ KURL url=KFileDialog::getOpenURL(TQString(),
i18n("*|All Files"), this, i18n("Open File"));
if(!url.isEmpty())
{
@@ -446,7 +446,7 @@ void KVerbosApp::slotFileSave()
slotStatusMsg(i18n("Saving file..."));
if (doc->URL().fileName() == i18n("Untitled"))
{
- // Hier liegt ein Fall vor, der zu "Save as ... " gehört.
+ // Hier liegt ein Fall vor, der zu "Save as ... " geh�rt.
slotFileSaveAs();
}
else
@@ -553,7 +553,7 @@ void KVerbosApp::slotStatusVerbMsg(int n)
statusBar()->changeItem(s, ID_VERBS_MSG);
}
-// Gibt die Anzahl der geübten Verben in der Statuszeile aus.
+// Gibt die Anzahl der ge�bten Verben in der Statuszeile aus.
void KVerbosApp::slotStatusTrainedMsg(int n)
{
TQString s;
@@ -562,7 +562,7 @@ void KVerbosApp::slotStatusTrainedMsg(int n)
statusBar()->changeItem(s, ID_TRAINED_MSG);
}
-// Gibt die Anzahl der richtig geübten Verben aus.
+// Gibt die Anzahl der richtig ge�bten Verben aus.
void KVerbosApp::slotStatusCorrectMsg(int n)
{
TQString s;
@@ -571,7 +571,7 @@ void KVerbosApp::slotStatusCorrectMsg(int n)
statusBar()->changeItem(s, ID_CORRECT_MSG);
}
-// öffnet einen Dialog mit dem neue Verben erfasst werden können.
+// �ffnet einen Dialog mit dem neue Verben erfasst werden k�nnen.
void KVerbosApp::slotEditErfassen()
{
spanishVerbList* pList = getDocument()->getList();
@@ -588,7 +588,7 @@ void KVerbosApp::slotEditErfassen()
emit testAnzahl(doc->getAnzahl());
}
-// öffnet einen Dialog mit dem die Verbliste bearbeitet werden kann.
+// �ffnet einen Dialog mit dem die Verbliste bearbeitet werden kann.
void KVerbosApp::slotEditBearbeiten()
{
KVerbEdit* pDlgEdit = new KVerbEdit(*(getDocument()->getList()), this, "edit the verbs", true);
@@ -690,8 +690,8 @@ void KVerbosApp::slotSettingsOptions()
correctStrict = pDlgEdit->RadioStrictCorr->isChecked();
//
showKFeederSplash = pDlgEdit->CheckBoxSplash->isChecked();
- // testen ob die Art der Futteranimationen geändert werden soll. Diese soll nur geändert
- // werden, wenn der KFeeder läuft und auch weiterhin laufen soll.
+ // testen ob die Art der Futteranimationen ge�ndert werden soll. Diese soll nur ge�ndert
+ // werden, wenn der KFeeder l�uft und auch weiterhin laufen soll.
if ((automaticKFeeder != pDlgEdit->CheckBoxMode->isChecked()) && useKFeeder &&
(pDlgEdit->CheckBoxKFeeder->isChecked() == true))
@@ -699,7 +699,7 @@ void KVerbosApp::slotSettingsOptions()
kfeederControl->setAutomatic(pDlgEdit->CheckBoxMode->isChecked());
};
automaticKFeeder = pDlgEdit->CheckBoxMode->isChecked();
- // prüfen, ob der KFeeder angehalten oder gestartet werden soll.
+ // pr�fen, ob der KFeeder angehalten oder gestartet werden soll.
if ((pDlgEdit->CheckBoxKFeeder->isChecked() == true) && (!useKFeeder))
{
// kfeeder starten
@@ -710,7 +710,7 @@ void KVerbosApp::slotSettingsOptions()
if ((pDlgEdit->CheckBoxKFeeder->isChecked() == false) && (useKFeeder))
{
// kfeeder anhalten
- disconnect(view, TQT_SIGNAL(informKFeeder(int)), this, TQT_SLOT(slotFeedIt(int)));
+ disconnect(view, TQT_SIGNAL(informKFeeder(int)), TQT_TQOBJECT(this), TQT_SLOT(slotFeedIt(int)));
delete kfeederControl;
kfeederControl = 0;
};
@@ -731,7 +731,7 @@ void KVerbosApp::slotSettingsUsername()
{
bool ok;
TQString n = KInputDialog::getText(i18n("Enter User Name"), i18n("Please enter your name:"),
- TQString::null , &ok, this).simplifyWhiteSpace();
+ TQString() , &ok, this).simplifyWhiteSpace();
if (ok)
{
statusBar()->changeItem(i18n("user: ") + n, ID_USERNAME_MSG);