@ -105,117 +105,117 @@ void KWordQuizApp::initActions()
TDEAction * configNotifications ;
TDEAction * configApp ;
fileNew = KStdAction : : openNew ( this , TQ T _SLOT( slotFileNew ( ) ) , actionCollection ( ) ) ;
fileNew = KStdAction : : openNew ( this , TQ _SLOT( slotFileNew ( ) ) , actionCollection ( ) ) ;
fileNew - > setWhatsThis ( i18n ( " Creates a new blank vocabulary document " ) ) ;
fileNew - > setToolTip ( fileNew - > whatsThis ( ) ) ;
fileOpen = KStdAction : : open ( this , TQ T _SLOT( slotFileOpen ( ) ) , actionCollection ( ) ) ;
fileOpen = KStdAction : : open ( this , TQ _SLOT( slotFileOpen ( ) ) , actionCollection ( ) ) ;
fileOpen - > setWhatsThis ( i18n ( " Opens an existing vocabulary document " ) ) ;
fileOpen - > setToolTip ( fileOpen - > whatsThis ( ) ) ;
fileOpenRecent = KStdAction : : openRecent ( this , TQ T _SLOT( slotFileOpenRecent ( const KURL & ) ) , actionCollection ( ) ) ;
fileOpenRecent = KStdAction : : openRecent ( this , TQ _SLOT( slotFileOpenRecent ( const KURL & ) ) , actionCollection ( ) ) ;
fileGHNS = new TDEAction ( i18n ( " &Get New Vocabularies... " ) , " knewstuff " , " CTRL+G " , this , TQ T _SLOT( slotFileGHNS ( ) ) , actionCollection ( ) , " file_ghns " ) ;
fileGHNS = new TDEAction ( i18n ( " &Get New Vocabularies... " ) , " knewstuff " , " CTRL+G " , this , TQ _SLOT( slotFileGHNS ( ) ) , actionCollection ( ) , " file_ghns " ) ;
fileGHNS - > setWhatsThis ( i18n ( " Downloads new vocabularies " ) ) ;
fileGHNS - > setToolTip ( fileGHNS - > whatsThis ( ) ) ;
fileSave = KStdAction : : save ( this , TQ T _SLOT( slotFileSave ( ) ) , actionCollection ( ) ) ;
fileSave = KStdAction : : save ( this , TQ _SLOT( slotFileSave ( ) ) , actionCollection ( ) ) ;
fileSave - > setWhatsThis ( i18n ( " Saves the active vocabulary document " ) ) ;
fileSave - > setToolTip ( fileSave - > whatsThis ( ) ) ;
fileSaveAs = KStdAction : : saveAs ( this , TQ T _SLOT( slotFileSaveAs ( ) ) , actionCollection ( ) ) ;
fileSaveAs = KStdAction : : saveAs ( this , TQ _SLOT( slotFileSaveAs ( ) ) , actionCollection ( ) ) ;
fileSaveAs - > setWhatsThis ( i18n ( " Saves the active vocabulary document with a different name " ) ) ;
fileSaveAs - > setToolTip ( fileSaveAs - > whatsThis ( ) ) ;
fileClose = KStdAction : : close ( this , TQ T _SLOT( slotFileClose ( ) ) , actionCollection ( ) ) ;
fileClose = KStdAction : : close ( this , TQ _SLOT( slotFileClose ( ) ) , actionCollection ( ) ) ;
fileClose - > setWhatsThis ( i18n ( " Closes the active vocabulary document " ) ) ;
fileClose - > setToolTip ( fileClose - > whatsThis ( ) ) ;
filePrint = KStdAction : : print ( this , TQ T _SLOT( slotFilePrint ( ) ) , actionCollection ( ) ) ;
filePrint = KStdAction : : print ( this , TQ _SLOT( slotFilePrint ( ) ) , actionCollection ( ) ) ;
filePrint - > setWhatsThis ( i18n ( " Prints the active vocabulary document " ) ) ;
filePrint - > setToolTip ( filePrint - > whatsThis ( ) ) ;
fileQuit = KStdAction : : quit ( this , TQ T _SLOT( slotFileQuit ( ) ) , actionCollection ( ) ) ;
fileQuit = KStdAction : : quit ( this , TQ _SLOT( slotFileQuit ( ) ) , actionCollection ( ) ) ;
fileQuit - > setWhatsThis ( i18n ( " Quits KWordQuiz " ) ) ;
fileQuit - > setToolTip ( fileQuit - > whatsThis ( ) ) ;
editUndo = KStdAction : : undo ( this , TQ T _SLOT( slotEditUndo ( ) ) , actionCollection ( ) ) ;
editUndo = KStdAction : : undo ( this , TQ _SLOT( slotEditUndo ( ) ) , actionCollection ( ) ) ;
editUndo - > setWhatsThis ( i18n ( " Undoes the last command " ) ) ;
editUndo - > setToolTip ( editUndo - > whatsThis ( ) ) ;
editCut = KStdAction : : cut ( this , TQ T _SLOT( slotEditCut ( ) ) , actionCollection ( ) ) ;
editCut = KStdAction : : cut ( this , TQ _SLOT( slotEditCut ( ) ) , actionCollection ( ) ) ;
editCut - > setWhatsThis ( i18n ( " Cuts the text from the selected cells and places it on the clipboard " ) ) ;
editCut - > setToolTip ( editCut - > whatsThis ( ) ) ;
editCopy = KStdAction : : copy ( this , TQ T _SLOT( slotEditCopy ( ) ) , actionCollection ( ) ) ;
editCopy = KStdAction : : copy ( this , TQ _SLOT( slotEditCopy ( ) ) , actionCollection ( ) ) ;
editCopy - > setWhatsThis ( i18n ( " Copies the text from the selected cells and places it on the clipboard " ) ) ;
editCopy - > setToolTip ( editCopy - > whatsThis ( ) ) ;
editPaste = KStdAction : : paste ( this , TQ T _SLOT( slotEditPaste ( ) ) , actionCollection ( ) ) ;
editPaste = KStdAction : : paste ( this , TQ _SLOT( slotEditPaste ( ) ) , actionCollection ( ) ) ;
editPaste - > setWhatsThis ( i18n ( " Pastes previously cut or copied text from the clipboard into the selected cells " ) ) ;
editPaste - > setToolTip ( editPaste - > whatsThis ( ) ) ;
editClear = KStdAction : : clear ( this , TQ T _SLOT( slotEditClear ( ) ) , actionCollection ( ) ) ;
editClear = KStdAction : : clear ( this , TQ _SLOT( slotEditClear ( ) ) , actionCollection ( ) ) ;
editClear - > setWhatsThis ( i18n ( " Clears the content of the selected cells " ) ) ;
editClear - > setToolTip ( editClear - > whatsThis ( ) ) ;
editInsert = new TDEAction ( i18n ( " &Insert Row " ) , " insert_table_row " , " CTRL+I " , this , TQ T _SLOT( slotEditInsert ( ) ) , actionCollection ( ) , " edit_insert " ) ;
editInsert = new TDEAction ( i18n ( " &Insert Row " ) , " insert_table_row " , " CTRL+I " , this , TQ _SLOT( slotEditInsert ( ) ) , actionCollection ( ) , " edit_insert " ) ;
editInsert - > setWhatsThis ( i18n ( " Inserts a new row above the current row " ) ) ;
editInsert - > setToolTip ( editInsert - > whatsThis ( ) ) ;
editDelete = new TDEAction ( i18n ( " &Delete Row " ) , " delete_table_row " , " CTRL+K " , this , TQ T _SLOT( slotEditDelete ( ) ) , actionCollection ( ) , " edit_delete " ) ;
editDelete = new TDEAction ( i18n ( " &Delete Row " ) , " delete_table_row " , " CTRL+K " , this , TQ _SLOT( slotEditDelete ( ) ) , actionCollection ( ) , " edit_delete " ) ;
editDelete - > setWhatsThis ( i18n ( " Deletes the selected row(s) " ) ) ;
editDelete - > setToolTip ( editDelete - > whatsThis ( ) ) ;
editMarkBlank = new TDEAction ( i18n ( " &Mark as Blank " ) , " markasblank " , " CTRL+M " , this , TQ T _SLOT( slotEditMarkBlank ( ) ) , actionCollection ( ) , " edit_mark_blank " ) ;
editMarkBlank = new TDEAction ( i18n ( " &Mark as Blank " ) , " markasblank " , " CTRL+M " , this , TQ _SLOT( slotEditMarkBlank ( ) ) , actionCollection ( ) , " edit_mark_blank " ) ;
editMarkBlank - > setWhatsThis ( i18n ( " Marks the current or selected word as a blank for Fill-in-the-blank " ) ) ;
editMarkBlank - > setToolTip ( editMarkBlank - > whatsThis ( ) ) ;
editUnmarkBlank = new TDEAction ( i18n ( " &Unmark Blanks " ) , " unmarkasblank " , 0 , this , TQ T _SLOT( slotEditUnmarkBlank ( ) ) , actionCollection ( ) , " edit_unmark_blank " ) ;
editUnmarkBlank = new TDEAction ( i18n ( " &Unmark Blanks " ) , " unmarkasblank " , 0 , this , TQ _SLOT( slotEditUnmarkBlank ( ) ) , actionCollection ( ) , " edit_unmark_blank " ) ;
editUnmarkBlank - > setWhatsThis ( i18n ( " Removes blanks from the current or selected word " ) ) ;
editUnmarkBlank - > setToolTip ( editUnmarkBlank - > whatsThis ( ) ) ;
//@todo implement editFind = KStdAction::find(this, TQ T _SLOT(slotEditFind()), actionCollection());
//@todo implement editFind = KStdAction::find(this, TQ _SLOT(slotEditFind()), actionCollection());
vocabLanguages = new TDEAction ( i18n ( " &Column Titles... " ) , " languages " , " CTRL+L " , this , TQ T _SLOT( slotVocabLanguages ( ) ) , actionCollection ( ) , " vocab_languages " ) ;
vocabLanguages = new TDEAction ( i18n ( " &Column Titles... " ) , " languages " , " CTRL+L " , this , TQ _SLOT( slotVocabLanguages ( ) ) , actionCollection ( ) , " vocab_languages " ) ;
vocabLanguages - > setWhatsThis ( i18n ( " Defines the column titles for the active vocabulary " ) ) ;
vocabLanguages - > setToolTip ( vocabLanguages - > whatsThis ( ) ) ;
vocabFont = new TDEAction ( i18n ( " &Font... " ) , " fonts " , 0 , this , TQ T _SLOT( slotVocabFont ( ) ) , actionCollection ( ) , " vocab_font " ) ;
vocabFont = new TDEAction ( i18n ( " &Font... " ) , " fonts " , 0 , this , TQ _SLOT( slotVocabFont ( ) ) , actionCollection ( ) , " vocab_font " ) ;
vocabFont - > setWhatsThis ( i18n ( " Defines the font used by the editor " ) ) ;
vocabFont - > setToolTip ( vocabFont - > whatsThis ( ) ) ;
//@todo implement vocabKeyboard = new TDEAction(i18n("&Keyboard..."), "kxkb", 0, this, TQ T _SLOT(slotVocabKeyboard()), actionCollection(),"vocab_keyboard");
//@todo implement vocabKeyboard = new TDEAction(i18n("&Keyboard..."), "kxkb", 0, this, TQ _SLOT(slotVocabKeyboard()), actionCollection(),"vocab_keyboard");
vocabRC = new TDEAction ( i18n ( " &Rows/Columns... " ) , " rowcol " , 0 , this , TQ T _SLOT( slotVocabRC ( ) ) , actionCollection ( ) , " vocab_rc " ) ;
vocabRC = new TDEAction ( i18n ( " &Rows/Columns... " ) , " rowcol " , 0 , this , TQ _SLOT( slotVocabRC ( ) ) , actionCollection ( ) , " vocab_rc " ) ;
vocabRC - > setWhatsThis ( i18n ( " Defines the number of rows, row heights, and column widths for the active vocabulary " ) ) ;
vocabRC - > setToolTip ( vocabRC - > whatsThis ( ) ) ;
vocabSort = new TDEAction ( i18n ( " &Sort... " ) , " sort_incr " , 0 , this , TQ T _SLOT( slotVocabSort ( ) ) , actionCollection ( ) , " vocab_sort " ) ;
vocabSort = new TDEAction ( i18n ( " &Sort... " ) , " sort_incr " , 0 , this , TQ _SLOT( slotVocabSort ( ) ) , actionCollection ( ) , " vocab_sort " ) ;
vocabSort - > setWhatsThis ( i18n ( " Sorts the vocabulary in ascending or descending order based on the left or right column " ) ) ;
vocabSort - > setToolTip ( vocabSort - > whatsThis ( ) ) ;
vocabShuffle = new TDEAction ( i18n ( " Sh&uffle " ) , " shuffle " , 0 , this , TQ T _SLOT( slotVocabShuffle ( ) ) , actionCollection ( ) , " vocab_shuffle " ) ;
vocabShuffle = new TDEAction ( i18n ( " Sh&uffle " ) , " shuffle " , 0 , this , TQ _SLOT( slotVocabShuffle ( ) ) , actionCollection ( ) , " vocab_shuffle " ) ;
vocabShuffle - > setWhatsThis ( i18n ( " Shuffles the entries of the active vocabulary " ) ) ;
vocabShuffle - > setToolTip ( vocabShuffle - > whatsThis ( ) ) ;
mode = new TDEToolBarPopupAction ( i18n ( " Change Mode " ) , " mode1 " , 0 , this , TQ T _SLOT( slotMode0 ( ) ) , actionCollection ( ) , " mode_0 " ) ;
mode = new TDEToolBarPopupAction ( i18n ( " Change Mode " ) , " mode1 " , 0 , this , TQ _SLOT( slotMode0 ( ) ) , actionCollection ( ) , " mode_0 " ) ;
mode - > setWhatsThis ( i18n ( " Changes the mode used in quiz sessions " ) ) ;
mode - > setToolTip ( mode - > whatsThis ( ) ) ;
TDEPopupMenu * popup = mode - > popupMenu ( ) ;
popup - > clear ( ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode1 " , TDEIcon : : Toolbar ) , " " , this , TQ T _SLOT( slotMode1 ( ) ) , 0 , 0 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode2 " , TDEIcon : : Toolbar ) , " " , this , TQ T _SLOT( slotMode2 ( ) ) , 0 , 1 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode3 " , TDEIcon : : Toolbar ) , " " , this , TQ T _SLOT( slotMode3 ( ) ) , 0 , 2 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode4 " , TDEIcon : : Toolbar ) , " " , this , TQ T _SLOT( slotMode4 ( ) ) , 0 , 3 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode5 " , TDEIcon : : Toolbar ) , " " , this , TQ T _SLOT( slotMode5 ( ) ) , 0 , 4 ) ;
mode1 = new TDEToggleAction ( " " , " mode1 " , 0 , this , TQ T _SLOT( slotMode1 ( ) ) , actionCollection ( ) , " mode_1 " ) ;
mode2 = new TDEToggleAction ( " " , " mode2 " , 0 , this , TQ T _SLOT( slotMode2 ( ) ) , actionCollection ( ) , " mode_2 " ) ;
mode3 = new TDEToggleAction ( " " , " mode3 " , 0 , this , TQ T _SLOT( slotMode3 ( ) ) , actionCollection ( ) , " mode_3 " ) ;
mode4 = new TDEToggleAction ( " " , " mode4 " , 0 , this , TQ T _SLOT( slotMode4 ( ) ) , actionCollection ( ) , " mode_4 " ) ;
mode5 = new TDEToggleAction ( " " , " mode5 " , 0 , this , TQ T _SLOT( slotMode5 ( ) ) , actionCollection ( ) , " mode_5 " ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode1 " , TDEIcon : : Toolbar ) , " " , this , TQ _SLOT( slotMode1 ( ) ) , 0 , 0 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode2 " , TDEIcon : : Toolbar ) , " " , this , TQ _SLOT( slotMode2 ( ) ) , 0 , 1 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode3 " , TDEIcon : : Toolbar ) , " " , this , TQ _SLOT( slotMode3 ( ) ) , 0 , 2 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode4 " , TDEIcon : : Toolbar ) , " " , this , TQ _SLOT( slotMode4 ( ) ) , 0 , 3 ) ;
popup - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( " mode5 " , TDEIcon : : Toolbar ) , " " , this , TQ _SLOT( slotMode5 ( ) ) , 0 , 4 ) ;
mode1 = new TDEToggleAction ( " " , " mode1 " , 0 , this , TQ _SLOT( slotMode1 ( ) ) , actionCollection ( ) , " mode_1 " ) ;
mode2 = new TDEToggleAction ( " " , " mode2 " , 0 , this , TQ _SLOT( slotMode2 ( ) ) , actionCollection ( ) , " mode_2 " ) ;
mode3 = new TDEToggleAction ( " " , " mode3 " , 0 , this , TQ _SLOT( slotMode3 ( ) ) , actionCollection ( ) , " mode_3 " ) ;
mode4 = new TDEToggleAction ( " " , " mode4 " , 0 , this , TQ _SLOT( slotMode4 ( ) ) , actionCollection ( ) , " mode_4 " ) ;
mode5 = new TDEToggleAction ( " " , " mode5 " , 0 , this , TQ _SLOT( slotMode5 ( ) ) , actionCollection ( ) , " mode_5 " ) ;
mode1 - > setWhatsThis ( i18n ( " Selects this mode " ) ) ;
mode2 - > setWhatsThis ( i18n ( " Selects this mode " ) ) ;
mode3 - > setWhatsThis ( i18n ( " Selects this mode " ) ) ;
@ -227,19 +227,19 @@ void KWordQuizApp::initActions()
mode4 - > setToolTip ( mode4 - > whatsThis ( ) ) ;
mode5 - > setToolTip ( mode5 - > whatsThis ( ) ) ;
quizEditor = new TDEAction ( i18n ( " &Editor " ) , " editor " , " F6 " , this , TQ T _SLOT( slotQuizEditor ( ) ) , actionCollection ( ) , " quiz_editor " ) ;
quizEditor = new TDEAction ( i18n ( " &Editor " ) , " editor " , " F6 " , this , TQ _SLOT( slotQuizEditor ( ) ) , actionCollection ( ) , " quiz_editor " ) ;
quizEditor - > setWhatsThis ( i18n ( " Activates the vocabulary editor " ) ) ;
quizEditor - > setToolTip ( quizEditor - > whatsThis ( ) ) ;
quizFlash = new TDEAction ( i18n ( " &Flashcard " ) , " flash " , " F7 " , this , TQ T _SLOT( slotQuizFlash ( ) ) , actionCollection ( ) , " quiz_flash " ) ;
quizFlash = new TDEAction ( i18n ( " &Flashcard " ) , " flash " , " F7 " , this , TQ _SLOT( slotQuizFlash ( ) ) , actionCollection ( ) , " quiz_flash " ) ;
quizFlash - > setWhatsThis ( i18n ( " Starts a flashcard session using the active vocabulary " ) ) ;
quizFlash - > setToolTip ( quizFlash - > whatsThis ( ) ) ;
quizMultiple = new TDEAction ( i18n ( " &Multiple Choice " ) , " multiple " , " F8 " , this , TQ T _SLOT( slotQuizMultiple ( ) ) , actionCollection ( ) , " quiz_multiple " ) ;
quizMultiple = new TDEAction ( i18n ( " &Multiple Choice " ) , " multiple " , " F8 " , this , TQ _SLOT( slotQuizMultiple ( ) ) , actionCollection ( ) , " quiz_multiple " ) ;
quizMultiple - > setWhatsThis ( i18n ( " Starts a multiple choice session using the active vocabulary " ) ) ;
quizMultiple - > setToolTip ( quizMultiple - > whatsThis ( ) ) ;
quizQA = new TDEAction ( i18n ( " &Question && Answer " ) , " qa " , " F9 " , this , TQ T _SLOT( slotQuizQA ( ) ) , actionCollection ( ) , " quiz_qa " ) ;
quizQA = new TDEAction ( i18n ( " &Question && Answer " ) , " qa " , " F9 " , this , TQ _SLOT( slotQuizQA ( ) ) , actionCollection ( ) , " quiz_qa " ) ;
quizQA - > setWhatsThis ( i18n ( " Starts a question and answer session using the active vocabulary " ) ) ;
quizQA - > setToolTip ( quizQA - > whatsThis ( ) ) ;
@ -267,26 +267,26 @@ void KWordQuizApp::initActions()
quizRepeatErrors - > setWhatsThis ( i18n ( " Repeats all incorrectly answered questions " ) ) ;
quizRepeatErrors - > setToolTip ( quizRepeatErrors - > whatsThis ( ) ) ;
configNotifications = KStdAction : : configureNotifications ( this , TQ T _SLOT( slotConfigureNotifications ( ) ) , actionCollection ( ) ) ;
configNotifications = KStdAction : : configureNotifications ( this , TQ _SLOT( slotConfigureNotifications ( ) ) , actionCollection ( ) ) ;
configNotifications - > setWhatsThis ( i18n ( " Configures sound and other notifications for certain events " ) ) ;
configNotifications - > setToolTip ( configNotifications - > whatsThis ( ) ) ;
configApp = KStdAction : : preferences ( this , TQ T _SLOT( slotConfigure ( ) ) , actionCollection ( ) ) ;
configApp = KStdAction : : preferences ( this , TQ _SLOT( slotConfigure ( ) ) , actionCollection ( ) ) ;
configApp - > setWhatsThis ( i18n ( " Specifies preferences for the vocabulary editor and quiz sessions " ) ) ;
configApp - > setToolTip ( configApp - > whatsThis ( ) ) ;
charMapper = new TQSignalMapper ( this ) ;
connect ( charMapper , TQ T _SIGNAL( mapped ( int ) ) , this , TQ T _SLOT( slotInsertChar ( int ) ) ) ;
specialChar1 = new TDEAction ( i18n ( " Special Character 1 " ) , " " , " CTRL+1 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_1 " ) ;
specialChar2 = new TDEAction ( i18n ( " Special Character 2 " ) , 0 , " CTRL+2 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_2 " ) ;
specialChar3 = new TDEAction ( i18n ( " Special Character 3 " ) , 0 , " CTRL+3 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_3 " ) ;
specialChar4 = new TDEAction ( i18n ( " Special Character 4 " ) , 0 , " CTRL+4 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_4 " ) ;
specialChar5 = new TDEAction ( i18n ( " Special Character 5 " ) , 0 , " CTRL+5 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_5 " ) ;
specialChar6 = new TDEAction ( i18n ( " Special Character 6 " ) , 0 , " CTRL+6 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_6 " ) ;
specialChar7 = new TDEAction ( i18n ( " Special Character 7 " ) , 0 , " CTRL+7 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_7 " ) ;
specialChar8 = new TDEAction ( i18n ( " Special Character 8 " ) , 0 , " CTRL+8 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_8 " ) ;
specialChar9 = new TDEAction ( i18n ( " Special Character 9 " ) , 0 , " CTRL+9 " , charMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , " char_9 " ) ;
connect ( charMapper , TQ _SIGNAL( mapped ( int ) ) , this , TQ _SLOT( slotInsertChar ( int ) ) ) ;
specialChar1 = new TDEAction ( i18n ( " Special Character 1 " ) , " " , " CTRL+1 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_1 " ) ;
specialChar2 = new TDEAction ( i18n ( " Special Character 2 " ) , 0 , " CTRL+2 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_2 " ) ;
specialChar3 = new TDEAction ( i18n ( " Special Character 3 " ) , 0 , " CTRL+3 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_3 " ) ;
specialChar4 = new TDEAction ( i18n ( " Special Character 4 " ) , 0 , " CTRL+4 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_4 " ) ;
specialChar5 = new TDEAction ( i18n ( " Special Character 5 " ) , 0 , " CTRL+5 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_5 " ) ;
specialChar6 = new TDEAction ( i18n ( " Special Character 6 " ) , 0 , " CTRL+6 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_6 " ) ;
specialChar7 = new TDEAction ( i18n ( " Special Character 7 " ) , 0 , " CTRL+7 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_7 " ) ;
specialChar8 = new TDEAction ( i18n ( " Special Character 8 " ) , 0 , " CTRL+8 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_8 " ) ;
specialChar9 = new TDEAction ( i18n ( " Special Character 9 " ) , 0 , " CTRL+9 " , charMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , " char_9 " ) ;
charMapper - > setMapping ( specialChar1 , 1 ) ;
charMapper - > setMapping ( specialChar2 , 2 ) ;
@ -299,8 +299,8 @@ void KWordQuizApp::initActions()
charMapper - > setMapping ( specialChar9 , 9 ) ;
actionCollection ( ) - > setHighlightingEnabled ( true ) ;
connect ( actionCollection ( ) , TQ T _SIGNAL( actionStatusText ( const TQString & ) ) , this , TQ T _SLOT( slotStatusMsg ( const TQString & ) ) ) ;
connect ( actionCollection ( ) , TQ T _SIGNAL( actionHighlighted ( TDEAction * , bool ) ) , this , TQ T _SLOT( slotActionHighlighted ( TDEAction * , bool ) ) ) ;
connect ( actionCollection ( ) , TQ _SIGNAL( actionStatusText ( const TQString & ) ) , this , TQ _SLOT( slotStatusMsg ( const TQString & ) ) ) ;
connect ( actionCollection ( ) , TQ _SIGNAL( actionHighlighted ( TDEAction * , bool ) ) , this , TQ _SLOT( slotActionHighlighted ( TDEAction * , bool ) ) ) ;
updateSpecialCharIcons ( ) ;
if ( ! initialGeometrySet ( ) )
@ -333,8 +333,8 @@ void KWordQuizApp::initView()
setCentralWidget ( m_editView ) ;
setCaption ( doc - > URL ( ) . fileName ( ) , false ) ;
m_editView - > setFont ( Prefs : : editorFont ( ) ) ;
connect ( m_editView , TQ T _SIGNAL( undoChange ( const TQString & , bool ) ) , this , TQ T _SLOT( slotUndoChange ( const TQString & , bool ) ) ) ;
connect ( m_editView , TQ T _SIGNAL( contextMenuRequested ( int , int , const TQPoint & ) ) , this , TQ T _SLOT( slotContextMenuRequested ( int , int , const TQPoint & ) ) ) ;
connect ( m_editView , TQ _SIGNAL( undoChange ( const TQString & , bool ) ) , this , TQ _SLOT( slotUndoChange ( const TQString & , bool ) ) ) ;
connect ( m_editView , TQ _SIGNAL( contextMenuRequested ( int , int , const TQPoint & ) ) , this , TQ _SLOT( slotContextMenuRequested ( int , int , const TQPoint & ) ) ) ;
}
void KWordQuizApp : : openURL ( const KURL & url )
@ -472,7 +472,7 @@ bool KWordQuizApp::queryExit()
}
/////////////////////////////////////////////////////////////////////
// TQT_ SLOT IMPLEMENTATION
// SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
void KWordQuizApp : : slotFileNew ( )
@ -956,7 +956,7 @@ void KWordQuizApp::updateSession(WQQuiz::QuizType qt)
break ;
case WQQuiz : : qtFlash :
m_quiz = new WQQuiz ( m_editView ) ;
connect ( m_quiz , TQ T _SIGNAL( checkingAnswer ( int ) ) , m_editView , TQ T _SLOT( slotCheckedAnswer ( int ) ) ) ;
connect ( m_quiz , TQ _SIGNAL( checkingAnswer ( int ) ) , m_editView , TQ _SLOT( slotCheckedAnswer ( int ) ) ) ;
m_quiz - > setQuizType ( WQQuiz : : qtFlash ) ;
m_quiz - > setQuizMode ( Prefs : : mode ( ) ) ;
if ( m_quiz - > init ( ) )
@ -964,12 +964,12 @@ void KWordQuizApp::updateSession(WQQuiz::QuizType qt)
m_editView - > saveCurrentSelection ( true ) ;
m_editView - > hide ( ) ;
m_flashView = new FlashView ( this ) ;
connect ( quizCheck , TQ T _SIGNAL( activated ( ) ) , m_flashView , TQ T _SLOT( slotFlip ( ) ) ) ;
connect ( flashKnow , TQ T _SIGNAL( activated ( ) ) , m_flashView , TQ T _SLOT( slotKnow ( ) ) ) ;
connect ( flashDontKnow , TQ T _SIGNAL( activated ( ) ) , m_flashView , TQ T _SLOT( slotDontKnow ( ) ) ) ;
connect ( quizRestart , TQ T _SIGNAL( activated ( ) ) , m_flashView , TQ T _SLOT( slotRestart ( ) ) ) ;
connect ( quizRepeatErrors , TQ T _SIGNAL( activated ( ) ) , m_flashView , TQ T _SLOT( slotRepeat ( ) ) ) ;
connect ( this , TQ T _SIGNAL( settingsChanged ( ) ) , m_flashView , TQ T _SLOT( slotApplySettings ( ) ) ) ;
connect ( quizCheck , TQ _SIGNAL( activated ( ) ) , m_flashView , TQ _SLOT( slotFlip ( ) ) ) ;
connect ( flashKnow , TQ _SIGNAL( activated ( ) ) , m_flashView , TQ _SLOT( slotKnow ( ) ) ) ;
connect ( flashDontKnow , TQ _SIGNAL( activated ( ) ) , m_flashView , TQ _SLOT( slotDontKnow ( ) ) ) ;
connect ( quizRestart , TQ _SIGNAL( activated ( ) ) , m_flashView , TQ _SLOT( slotRestart ( ) ) ) ;
connect ( quizRepeatErrors , TQ _SIGNAL( activated ( ) ) , m_flashView , TQ _SLOT( slotRepeat ( ) ) ) ;
connect ( this , TQ _SIGNAL( settingsChanged ( ) ) , m_flashView , TQ _SLOT( slotApplySettings ( ) ) ) ;
setCentralWidget ( m_flashView ) ;
m_flashView - > setQuiz ( m_quiz ) ;
@ -984,7 +984,7 @@ void KWordQuizApp::updateSession(WQQuiz::QuizType qt)
break ;
case WQQuiz : : qtMultiple :
m_quiz = new WQQuiz ( m_editView ) ;
connect ( m_quiz , TQ T _SIGNAL( checkingAnswer ( int ) ) , m_editView , TQ T _SLOT( slotCheckedAnswer ( int ) ) ) ;
connect ( m_quiz , TQ _SIGNAL( checkingAnswer ( int ) ) , m_editView , TQ _SLOT( slotCheckedAnswer ( int ) ) ) ;
m_quiz - > setQuizType ( WQQuiz : : qtMultiple ) ;
m_quiz - > setQuizMode ( Prefs : : mode ( ) ) ;
if ( m_quiz - > init ( ) )
@ -992,10 +992,10 @@ void KWordQuizApp::updateSession(WQQuiz::QuizType qt)
m_editView - > saveCurrentSelection ( true ) ;
m_editView - > hide ( ) ;
m_multipleView = new MultipleView ( this ) ;
connect ( quizCheck , TQ T _SIGNAL( activated ( ) ) , m_multipleView , TQ T _SLOT( slotCheck ( ) ) ) ;
connect ( quizRestart , TQ T _SIGNAL( activated ( ) ) , m_multipleView , TQ T _SLOT( slotRestart ( ) ) ) ;
connect ( quizRepeatErrors , TQ T _SIGNAL( activated ( ) ) , m_multipleView , TQ T _SLOT( slotRepeat ( ) ) ) ;
connect ( this , TQ T _SIGNAL( settingsChanged ( ) ) , m_multipleView , TQ T _SLOT( slotApplySettings ( ) ) ) ;
connect ( quizCheck , TQ _SIGNAL( activated ( ) ) , m_multipleView , TQ _SLOT( slotCheck ( ) ) ) ;
connect ( quizRestart , TQ _SIGNAL( activated ( ) ) , m_multipleView , TQ _SLOT( slotRestart ( ) ) ) ;
connect ( quizRepeatErrors , TQ _SIGNAL( activated ( ) ) , m_multipleView , TQ _SLOT( slotRepeat ( ) ) ) ;
connect ( this , TQ _SIGNAL( settingsChanged ( ) ) , m_multipleView , TQ _SLOT( slotApplySettings ( ) ) ) ;
setCentralWidget ( m_multipleView ) ;
@ -1011,7 +1011,7 @@ void KWordQuizApp::updateSession(WQQuiz::QuizType qt)
break ;
case WQQuiz : : qtQA :
m_quiz = new WQQuiz ( m_editView ) ;
connect ( m_quiz , TQ T _SIGNAL( checkingAnswer ( int ) ) , m_editView , TQ T _SLOT( slotCheckedAnswer ( int ) ) ) ;
connect ( m_quiz , TQ _SIGNAL( checkingAnswer ( int ) ) , m_editView , TQ _SLOT( slotCheckedAnswer ( int ) ) ) ;
m_quiz - > setQuizType ( WQQuiz : : qtQA ) ;
m_quiz - > setQuizMode ( Prefs : : mode ( ) ) ;
if ( m_quiz - > init ( ) )
@ -1019,11 +1019,11 @@ void KWordQuizApp::updateSession(WQQuiz::QuizType qt)
m_editView - > saveCurrentSelection ( true ) ;
m_editView - > hide ( ) ;
m_qaView = new QAView ( this ) ;
connect ( quizCheck , TQ T _SIGNAL( activated ( ) ) , m_qaView , TQ T _SLOT( slotCheck ( ) ) ) ;
connect ( qaHint , TQ T _SIGNAL( activated ( ) ) , m_qaView , TQ T _SLOT( slotHint ( ) ) ) ;
connect ( quizRestart , TQ T _SIGNAL( activated ( ) ) , m_qaView , TQ T _SLOT( slotRestart ( ) ) ) ;
connect ( quizRepeatErrors , TQ T _SIGNAL( activated ( ) ) , m_qaView , TQ T _SLOT( slotRepeat ( ) ) ) ;
connect ( this , TQ T _SIGNAL( settingsChanged ( ) ) , m_qaView , TQ T _SLOT( slotApplySettings ( ) ) ) ;
connect ( quizCheck , TQ _SIGNAL( activated ( ) ) , m_qaView , TQ _SLOT( slotCheck ( ) ) ) ;
connect ( qaHint , TQ _SIGNAL( activated ( ) ) , m_qaView , TQ _SLOT( slotHint ( ) ) ) ;
connect ( quizRestart , TQ _SIGNAL( activated ( ) ) , m_qaView , TQ _SLOT( slotRestart ( ) ) ) ;
connect ( quizRepeatErrors , TQ _SIGNAL( activated ( ) ) , m_qaView , TQ _SLOT( slotRepeat ( ) ) ) ;
connect ( this , TQ _SIGNAL( settingsChanged ( ) ) , m_qaView , TQ _SLOT( slotApplySettings ( ) ) ) ;
setCentralWidget ( m_qaView ) ;
@ -1055,7 +1055,7 @@ void KWordQuizApp::slotConfigure()
//TDEConfigDialog didn't find an instance of this dialog, so lets create it :
KWordQuizPrefs * dialog = new KWordQuizPrefs ( this , " settings " , Prefs : : self ( ) ) ;
connect ( dialog , TQ T _SIGNAL( settingsChanged ( ) ) , this , TQ T _SLOT( slotApplyPreferences ( ) ) ) ;
connect ( dialog , TQ _SIGNAL( settingsChanged ( ) ) , this , TQ _SLOT( slotApplyPreferences ( ) ) ) ;
dialog - > show ( ) ;
}