@ -171,8 +171,8 @@ void KBabelMW::init(KBCatalog* catalog)
prefDialogs . setAutoDelete ( true ) ;
prefDialogs . setAutoDelete ( true ) ;
_statusbarTimer = new TQTimer ( this , " statusbartimer " ) ;
_statusbarTimer = new TQTimer ( this , " statusbartimer " ) ;
connect ( _statusbarTimer , TQ T _SIGNAL( timeout ( ) ) , this
connect ( _statusbarTimer , TQ _SIGNAL( timeout ( ) ) , this
, TQ T _SLOT( clearStatusbarMsg ( ) ) ) ;
, TQ _SLOT( clearStatusbarMsg ( ) ) ) ;
// FIXME:
// FIXME:
Q_ASSERT ( _project ) ;
Q_ASSERT ( _project ) ;
@ -206,74 +206,74 @@ void KBabelMW::init(KBCatalog* catalog)
}
}
connect ( catalog , TQ T _SIGNAL( signalUndoAvailable ( bool ) ) , this
connect ( catalog , TQ _SIGNAL( signalUndoAvailable ( bool ) ) , this
, TQ T _SLOT( enableUndo ( bool ) ) ) ;
, TQ _SLOT( enableUndo ( bool ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalRedoAvailable ( bool ) ) , this
connect ( catalog , TQ _SIGNAL( signalRedoAvailable ( bool ) ) , this
, TQ T _SLOT( enableRedo ( bool ) ) ) ;
, TQ _SLOT( enableRedo ( bool ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalNumberOfFuzziesChanged ( uint ) ) , this
connect ( catalog , TQ _SIGNAL( signalNumberOfFuzziesChanged ( uint ) ) , this
, TQ T _SLOT( setNumberOfFuzzies ( uint ) ) ) ;
, TQ _SLOT( setNumberOfFuzzies ( uint ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalNumberOfUntranslatedChanged ( uint ) ) , this
connect ( catalog , TQ _SIGNAL( signalNumberOfUntranslatedChanged ( uint ) ) , this
, TQ T _SLOT( setNumberOfUntranslated ( uint ) ) ) ;
, TQ _SLOT( setNumberOfUntranslated ( uint ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalTotalNumberChanged ( uint ) ) , this
connect ( catalog , TQ _SIGNAL( signalTotalNumberChanged ( uint ) ) , this
, TQ T _SLOT( setNumberOfTotal ( uint ) ) ) ;
, TQ _SLOT( setNumberOfTotal ( uint ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalProgress ( int ) ) , _progressBar , TQ T _SLOT( setProgress ( int ) ) ) ;
connect ( catalog , TQ _SIGNAL( signalProgress ( int ) ) , _progressBar , TQ _SLOT( setProgress ( int ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalClearProgressBar ( ) ) , this , TQ T _SLOT( clearProgressBar ( ) ) ) ;
connect ( catalog , TQ _SIGNAL( signalClearProgressBar ( ) ) , this , TQ _SLOT( clearProgressBar ( ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalResetProgressBar ( TQString , int ) )
connect ( catalog , TQ _SIGNAL( signalResetProgressBar ( TQString , int ) )
, this , TQ T _SLOT( prepareProgressBar ( TQString , int ) ) ) ;
, this , TQ _SLOT( prepareProgressBar ( TQString , int ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalFileOpened ( bool ) ) , this , TQ T _SLOT( enableDefaults ( bool ) ) ) ;
connect ( catalog , TQ _SIGNAL( signalFileOpened ( bool ) ) , this , TQ _SLOT( enableDefaults ( bool ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalFileOpened ( bool ) ) , m_view , TQ T _SLOT( newFileOpened ( bool ) ) ) ;
connect ( catalog , TQ _SIGNAL( signalFileOpened ( bool ) ) , m_view , TQ _SLOT( newFileOpened ( bool ) ) ) ;
connect ( catalog , TQ T _SIGNAL( signalModified ( bool ) ) , this , TQ T _SLOT( showModified ( bool ) ) ) ;
connect ( catalog , TQ _SIGNAL( signalModified ( bool ) ) , this , TQ _SLOT( showModified ( bool ) ) ) ;
// allow the view to change the statusbar and caption
// allow the view to change the statusbar and caption
connect ( m_view , TQ T _SIGNAL( signalChangeStatusbar ( const TQString & ) ) ,
connect ( m_view , TQ _SIGNAL( signalChangeStatusbar ( const TQString & ) ) ,
this , TQ T _SLOT( changeStatusbar ( const TQString & ) ) ) ;
this , TQ _SLOT( changeStatusbar ( const TQString & ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalChangeCaption ( const TQString & ) ) ,
connect ( m_view , TQ _SIGNAL( signalChangeCaption ( const TQString & ) ) ,
this , TQ T _SLOT( changeCaption ( const TQString & ) ) ) ;
this , TQ _SLOT( changeCaption ( const TQString & ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalFirstDisplayed ( bool , bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalFirstDisplayed ( bool , bool ) ) , this
, TQ T _SLOT( firstEntryDisplayed ( bool , bool ) ) ) ;
, TQ _SLOT( firstEntryDisplayed ( bool , bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalLastDisplayed ( bool , bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalLastDisplayed ( bool , bool ) ) , this
, TQ T _SLOT( lastEntryDisplayed ( bool , bool ) ) ) ;
, TQ _SLOT( lastEntryDisplayed ( bool , bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalFuzzyDisplayed ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalFuzzyDisplayed ( bool ) ) , this
, TQ T _SLOT( fuzzyDisplayed ( bool ) ) ) ;
, TQ _SLOT( fuzzyDisplayed ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalUntranslatedDisplayed ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalUntranslatedDisplayed ( bool ) ) , this
, TQ T _SLOT( untranslatedDisplayed ( bool ) ) ) ;
, TQ _SLOT( untranslatedDisplayed ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalFaultyDisplayed ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalFaultyDisplayed ( bool ) ) , this
, TQ T _SLOT( faultyDisplayed ( bool ) ) ) ;
, TQ _SLOT( faultyDisplayed ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalDisplayed ( const KBabel : : DocPosition & ) ) , this
connect ( m_view , TQ _SIGNAL( signalDisplayed ( const KBabel : : DocPosition & ) ) , this
, TQ T _SLOT( displayedEntryChanged ( const KBabel : : DocPosition & ) ) ) ;
, TQ _SLOT( displayedEntryChanged ( const KBabel : : DocPosition & ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalFuzzyAfterwards ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalFuzzyAfterwards ( bool ) ) , this
, TQ T _SLOT( hasFuzzyAfterwards ( bool ) ) ) ;
, TQ _SLOT( hasFuzzyAfterwards ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalFuzzyInFront ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalFuzzyInFront ( bool ) ) , this
, TQ T _SLOT( hasFuzzyInFront ( bool ) ) ) ;
, TQ _SLOT( hasFuzzyInFront ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalUntranslatedAfterwards ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalUntranslatedAfterwards ( bool ) ) , this
, TQ T _SLOT( hasUntranslatedAfterwards ( bool ) ) ) ;
, TQ _SLOT( hasUntranslatedAfterwards ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalUntranslatedInFront ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalUntranslatedInFront ( bool ) ) , this
, TQ T _SLOT( hasUntranslatedInFront ( bool ) ) ) ;
, TQ _SLOT( hasUntranslatedInFront ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalErrorAfterwards ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalErrorAfterwards ( bool ) ) , this
, TQ T _SLOT( hasErrorAfterwards ( bool ) ) ) ;
, TQ _SLOT( hasErrorAfterwards ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalErrorInFront ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalErrorInFront ( bool ) ) , this
, TQ T _SLOT( hasErrorInFront ( bool ) ) ) ;
, TQ _SLOT( hasErrorInFront ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalBackHistory ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalBackHistory ( bool ) ) , this
, TQ T _SLOT( enableBackHistory ( bool ) ) ) ;
, TQ _SLOT( enableBackHistory ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalForwardHistory ( bool ) ) , this
connect ( m_view , TQ _SIGNAL( signalForwardHistory ( bool ) ) , this
, TQ T _SLOT( enableForwardHistory ( bool ) ) ) ;
, TQ _SLOT( enableForwardHistory ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( ledColorChanged ( const TQColor & ) ) , this
connect ( m_view , TQ _SIGNAL( ledColorChanged ( const TQColor & ) ) , this
, TQ T _SLOT( setLedColor ( const TQColor & ) ) ) ;
, TQ _SLOT( setLedColor ( const TQColor & ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalSearchActive ( bool ) ) , this , TQ T _SLOT( enableStop ( bool ) ) ) ;
connect ( m_view , TQ _SIGNAL( signalSearchActive ( bool ) ) , this , TQ _SLOT( enableStop ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalProgress ( int ) ) , _progressBar , TQ T _SLOT( setProgress ( int ) ) ) ;
connect ( m_view , TQ _SIGNAL( signalProgress ( int ) ) , _progressBar , TQ _SLOT( setProgress ( int ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalClearProgressBar ( ) ) , this , TQ T _SLOT( clearProgressBar ( ) ) ) ;
connect ( m_view , TQ _SIGNAL( signalClearProgressBar ( ) ) , this , TQ _SLOT( clearProgressBar ( ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalResetProgressBar ( TQString , int ) )
connect ( m_view , TQ _SIGNAL( signalResetProgressBar ( TQString , int ) )
, this , TQ T _SLOT( prepareProgressBar ( TQString , int ) ) ) ;
, this , TQ _SLOT( prepareProgressBar ( TQString , int ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalDictionariesChanged ( ) )
connect ( m_view , TQ _SIGNAL( signalDictionariesChanged ( ) )
, this , TQ T _SLOT( buildDictMenus ( ) ) ) ;
, this , TQ _SLOT( buildDictMenus ( ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalCursorPosChanged ( int , int ) ) , this
connect ( m_view , TQ _SIGNAL( signalCursorPosChanged ( int , int ) ) , this
, TQ T _SLOT( updateCursorPosition ( int , int ) ) ) ;
, TQ _SLOT( updateCursorPosition ( int , int ) ) ) ;
if ( ! catalog - > currentURL ( ) . isEmpty ( ) )
if ( ! catalog - > currentURL ( ) . isEmpty ( ) )
{
{
@ -296,14 +296,14 @@ void KBabelMW::init(KBCatalog* catalog)
// the earlier created TDEAction for "clear_bookmarks" is now reconnected
// the earlier created TDEAction for "clear_bookmarks" is now reconnected
TDEAction * action = actionCollection ( ) - > action ( " clear_bookmarks " ) ;
TDEAction * action = actionCollection ( ) - > action ( " clear_bookmarks " ) ;
if ( action ) {
if ( action ) {
action - > disconnect ( TQ T _SIGNAL( activated ( ) ) ) ;
action - > disconnect ( TQ _SIGNAL( activated ( ) ) ) ;
connect ( action , TQ T _SIGNAL( activated ( ) ) ,
connect ( action , TQ _SIGNAL( activated ( ) ) ,
bmHandler , TQ T _SLOT( slotClearBookmarks ( ) ) ) ;
bmHandler , TQ _SLOT( slotClearBookmarks ( ) ) ) ;
}
}
connect ( bmHandler , TQ T _SIGNAL( signalBookmarkSelected ( int ) ) ,
connect ( bmHandler , TQ _SIGNAL( signalBookmarkSelected ( int ) ) ,
this , TQ T _SLOT( slotOpenBookmark ( int ) ) ) ;
this , TQ _SLOT( slotOpenBookmark ( int ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalNewFileOpened ( KURL ) ) ,
connect ( m_view , TQ _SIGNAL( signalNewFileOpened ( KURL ) ) ,
bmHandler , TQ T _SLOT( slotClearBookmarks ( ) ) ) ;
bmHandler , TQ _SLOT( slotClearBookmarks ( ) ) ) ;
_config = TDESharedConfig : : openConfig ( " kbabelrc " ) ;
_config = TDESharedConfig : : openConfig ( " kbabelrc " ) ;
restoreSettings ( ) ;
restoreSettings ( ) ;
@ -335,7 +335,7 @@ void KBabelMW::init(KBCatalog* catalog)
" set to %1. You may want to change this setting "
" set to %1. You may want to change this setting "
" according to the settings of your language team. " ) . arg ( encodingStr ) ) ;
" according to the settings of your language team. " ) . arg ( encodingStr ) ) ;
TQTimer : : singleShot ( 1 , this , TQ T _SLOT( projectConfigure ( ) ) ) ;
TQTimer : : singleShot ( 1 , this , TQ _SLOT( projectConfigure ( ) ) ) ;
}
}
_config - > writeEntry ( " Version " , VERSION ) ;
_config - > writeEntry ( " Version " , VERSION ) ;
@ -404,289 +404,289 @@ void KBabelMW::setupActions()
TDEAction * action ;
TDEAction * action ;
// the file menu
// the file menu
action = KStdAction : : open ( this , TQ T _SLOT( fileOpen ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : open ( this , TQ _SLOT( fileOpen ( ) ) , actionCollection ( ) ) ;
a_recent = KStdAction : : openRecent ( this , TQ T _SLOT( openRecent ( const KURL & ) ) , actionCollection ( ) ) ;
a_recent = KStdAction : : openRecent ( this , TQ _SLOT( openRecent ( const KURL & ) ) , actionCollection ( ) ) ;
a_recent - > setMaxItems ( MAX_RECENT ) ;
a_recent - > setMaxItems ( MAX_RECENT ) ;
action = KStdAction : : revert ( m_view , TQ T _SLOT( revertToSaved ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : revert ( m_view , TQ _SLOT( revertToSaved ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : save ( this , TQ T _SLOT( fileSave ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : save ( this , TQ _SLOT( fileSave ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : saveAs ( this , TQ T _SLOT( fileSaveAs ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : saveAs ( this , TQ _SLOT( fileSaveAs ( ) ) , actionCollection ( ) ) ;
action = new TDEAction ( i18n ( " Save Sp&ecial... " ) , 0 , this , TQ T _SLOT( fileSaveSpecial ( ) ) ,
action = new TDEAction ( i18n ( " Save Sp&ecial... " ) , 0 , this , TQ _SLOT( fileSaveSpecial ( ) ) ,
actionCollection ( ) , " save_special " ) ;
actionCollection ( ) , " save_special " ) ;
action = new TDEAction ( i18n ( " Set &Package... " ) , 0 , m_view , TQ T _SLOT( setFilePackage ( ) ) ,
action = new TDEAction ( i18n ( " Set &Package... " ) , 0 , m_view , TQ _SLOT( setFilePackage ( ) ) ,
actionCollection ( ) , " set_package " ) ;
actionCollection ( ) , " set_package " ) ;
action = KStdAction : : mail ( this , TQ T _SLOT( fileMail ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : mail ( this , TQ _SLOT( fileMail ( ) ) , actionCollection ( ) ) ;
action = new TDEAction ( i18n ( " &New View " ) , 0 , this , TQ T _SLOT( fileNewView ( ) ) ,
action = new TDEAction ( i18n ( " &New View " ) , 0 , this , TQ _SLOT( fileNewView ( ) ) ,
actionCollection ( ) , " file_new_view " ) ;
actionCollection ( ) , " file_new_view " ) ;
action = new TDEAction ( i18n ( " New &Window " ) , 0 , this , TQ T _SLOT( fileNewWindow ( ) ) ,
action = new TDEAction ( i18n ( " New &Window " ) , 0 , this , TQ _SLOT( fileNewWindow ( ) ) ,
actionCollection ( ) , " file_new_window " ) ;
actionCollection ( ) , " file_new_window " ) ;
action - > setShortcut ( TDEStdAccel : : openNew ( ) ) ;
action - > setShortcut ( TDEStdAccel : : openNew ( ) ) ;
action = KStdAction : : quit ( this , TQ T _SLOT( quit ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : quit ( this , TQ _SLOT( quit ( ) ) , actionCollection ( ) ) ;
// the edit menu
// the edit menu
action = KStdAction : : undo ( m_view , TQ T _SLOT( undo ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : undo ( m_view , TQ _SLOT( undo ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : redo ( m_view , TQ T _SLOT( redo ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : redo ( m_view , TQ _SLOT( redo ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : cut ( m_view , TQ T _SIGNAL( signalCut ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : cut ( m_view , TQ _SIGNAL( signalCut ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : copy ( m_view , TQ T _SIGNAL( signalCopy ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : copy ( m_view , TQ _SIGNAL( signalCopy ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : paste ( m_view , TQ T _SIGNAL( signalPaste ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : paste ( m_view , TQ _SIGNAL( signalPaste ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : selectAll ( m_view , TQ T _SIGNAL( signalSelectAll ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : selectAll ( m_view , TQ _SIGNAL( signalSelectAll ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : find ( m_view , TQ T _SLOT( find ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : find ( m_view , TQ _SLOT( find ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : findNext ( m_view , TQ T _SLOT( findNext ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : findNext ( m_view , TQ _SLOT( findNext ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : findPrev ( m_view , TQ T _SLOT( findPrev ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : findPrev ( m_view , TQ _SLOT( findPrev ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : replace ( m_view , TQ T _SLOT( replace ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : replace ( m_view , TQ _SLOT( replace ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : clear ( m_view , TQ T _SLOT( clear ( ) ) , actionCollection ( ) , " clear " ) ;
action = KStdAction : : clear ( m_view , TQ _SLOT( clear ( ) ) , actionCollection ( ) , " clear " ) ;
action = new TDEAction ( i18n ( " Cop&y Msgid to Msgstr " ) , " msgid2msgstr " , CTRL + Key_Space , m_view
action = new TDEAction ( i18n ( " Cop&y Msgid to Msgstr " ) , " msgid2msgstr " , CTRL + Key_Space , m_view
, TQ T _SLOT( msgid2msgstr ( ) ) , actionCollection ( ) , " msgid2msgstr " ) ;
, TQ _SLOT( msgid2msgstr ( ) ) , actionCollection ( ) , " msgid2msgstr " ) ;
action = new TDEAction ( i18n ( " Copy Searc&h Result to Msgstr " ) , " search2msgstr " ,
action = new TDEAction ( i18n ( " Copy Searc&h Result to Msgstr " ) , " search2msgstr " ,
CTRL + ALT + Key_Space , m_view , TQ T _SLOT( search2msgstr ( ) ) ,
CTRL + ALT + Key_Space , m_view , TQ _SLOT( search2msgstr ( ) ) ,
actionCollection ( ) , " search2msgstr " ) ;
actionCollection ( ) , " search2msgstr " ) ;
action = new TDEAction ( i18n ( " Copy Msgstr to Other &Plurals " ) , Key_F11 , m_view
action = new TDEAction ( i18n ( " Copy Msgstr to Other &Plurals " ) , Key_F11 , m_view
, TQ T _SLOT( plural2msgstr ( ) ) , actionCollection ( ) , " plural2msgstr " ) ;
, TQ _SLOT( plural2msgstr ( ) ) , actionCollection ( ) , " plural2msgstr " ) ;
action = new TDEAction ( i18n ( " Copy Selected Character to Msgstr " ) , Key_F10 , m_charselectorview
action = new TDEAction ( i18n ( " Copy Selected Character to Msgstr " ) , Key_F10 , m_charselectorview
, TQ T _SLOT( emitChar ( ) ) , actionCollection ( ) , " char2msgstr " ) ;
, TQ _SLOT( emitChar ( ) ) , actionCollection ( ) , " char2msgstr " ) ;
a_unsetFuzzy = new TDEAction ( i18n ( " To&ggle Fuzzy Status " ) , " togglefuzzy " , CTRL + Key_U , m_view
a_unsetFuzzy = new TDEAction ( i18n ( " To&ggle Fuzzy Status " ) , " togglefuzzy " , CTRL + Key_U , m_view
, TQ T _SLOT( removeFuzzyStatus ( ) ) , actionCollection ( ) , " edit_toggle_fuzzy " ) ;
, TQ _SLOT( removeFuzzyStatus ( ) ) , actionCollection ( ) , " edit_toggle_fuzzy " ) ;
action = new TDEAction ( i18n ( " &Edit Header... " ) , 0 , m_view , TQ T _SLOT( editHeader ( ) ) ,
action = new TDEAction ( i18n ( " &Edit Header... " ) , 0 , m_view , TQ _SLOT( editHeader ( ) ) ,
actionCollection ( ) , " edit_edit_header " ) ;
actionCollection ( ) , " edit_edit_header " ) ;
action = new TDEAction ( i18n ( " &Insert Next Tag " ) , " insert_tag " , CTRL + ALT + Key_N
action = new TDEAction ( i18n ( " &Insert Next Tag " ) , " insert_tag " , CTRL + ALT + Key_N
, m_view , TQ T _SLOT( insertNextTag ( ) )
, m_view , TQ _SLOT( insertNextTag ( ) )
, actionCollection ( ) , " insert_next_tag " ) ;
, actionCollection ( ) , " insert_next_tag " ) ;
connect ( m_view , TQ T _SIGNAL( signalNextTagAvailable ( bool ) ) , action
connect ( m_view , TQ _SIGNAL( signalNextTagAvailable ( bool ) ) , action
, TQ T _SLOT( setEnabled ( bool ) ) ) ;
, TQ _SLOT( setEnabled ( bool ) ) ) ;
action = new TDEAction ( i18n ( " Insert Next Tag From Msgid P&osition " ) , " insert_tag " , CTRL + Key_M
action = new TDEAction ( i18n ( " Insert Next Tag From Msgid P&osition " ) , " insert_tag " , CTRL + Key_M
, m_view , TQ T _SLOT( insertNextTagMsgid ( ) )
, m_view , TQ _SLOT( insertNextTagMsgid ( ) )
, actionCollection ( ) , " insert_next_tag_msgid " ) ;
, actionCollection ( ) , " insert_next_tag_msgid " ) ;
connect ( m_view , TQ T _SIGNAL( signalNextTagAvailable ( bool ) ) , action
connect ( m_view , TQ _SIGNAL( signalNextTagAvailable ( bool ) ) , action
, TQ T _SLOT( setEnabled ( bool ) ) ) ;
, TQ _SLOT( setEnabled ( bool ) ) ) ;
TDEActionMenu * actionMenu = new TDEActionMenu ( i18n ( " Inser&t Tag " ) , " insert_tag "
TDEActionMenu * actionMenu = new TDEActionMenu ( i18n ( " Inser&t Tag " ) , " insert_tag "
, actionCollection ( ) , " insert_tag " ) ;
, actionCollection ( ) , " insert_tag " ) ;
m_view - > setTagsMenu ( actionMenu - > popupMenu ( ) ) ;
m_view - > setTagsMenu ( actionMenu - > popupMenu ( ) ) ;
connect ( m_view , TQ T _SIGNAL( signalTagsAvailable ( bool ) ) , actionMenu
connect ( m_view , TQ _SIGNAL( signalTagsAvailable ( bool ) ) , actionMenu
, TQ T _SLOT( setEnabled ( bool ) ) ) ;
, TQ _SLOT( setEnabled ( bool ) ) ) ;
connect ( actionMenu , TQ T _SIGNAL( activated ( ) ) , m_view , TQ T _SLOT( insertNextTag ( ) ) ) ;
connect ( actionMenu , TQ _SIGNAL( activated ( ) ) , m_view , TQ _SLOT( insertNextTag ( ) ) ) ;
action = new TDEAction ( i18n ( " Show Tags Menu " ) , CTRL + Key_Less
action = new TDEAction ( i18n ( " Show Tags Menu " ) , CTRL + Key_Less
, m_view , TQ T _SLOT( showTagsMenu ( ) ) , actionCollection ( ) , " show_tags_menu " ) ;
, m_view , TQ _SLOT( showTagsMenu ( ) ) , actionCollection ( ) , " show_tags_menu " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
connect ( m_view , TQ T _SIGNAL( signalTagsAvailable ( bool ) ) , action
connect ( m_view , TQ _SIGNAL( signalTagsAvailable ( bool ) ) , action
, TQ T _SLOT( setEnabled ( bool ) ) ) ;
, TQ _SLOT( setEnabled ( bool ) ) ) ;
action = new TDEAction ( i18n ( " Move to Next Tag " ) , 0 , CTRL + ALT + Key_M
action = new TDEAction ( i18n ( " Move to Next Tag " ) , 0 , CTRL + ALT + Key_M
, m_view , TQ T _SLOT( skipToNextTag ( ) )
, m_view , TQ _SLOT( skipToNextTag ( ) )
, actionCollection ( ) , " move_to_next_tag " ) ;
, actionCollection ( ) , " move_to_next_tag " ) ;
action = new TDEAction ( i18n ( " Move to Previous Tag " ) , 0 , CTRL + ALT + Key_B
action = new TDEAction ( i18n ( " Move to Previous Tag " ) , 0 , CTRL + ALT + Key_B
, m_view , TQ T _SLOT( skipToPreviousTag ( ) )
, m_view , TQ _SLOT( skipToPreviousTag ( ) )
, actionCollection ( ) , " move_to_prev_tag " ) ;
, actionCollection ( ) , " move_to_prev_tag " ) ;
action = new TDEAction ( i18n ( " Insert Next Argument " ) , " insert_arg " , CTRL + ALT + Key_G
action = new TDEAction ( i18n ( " Insert Next Argument " ) , " insert_arg " , CTRL + ALT + Key_G
, m_view , TQ T _SLOT( insertNextArg ( ) )
, m_view , TQ _SLOT( insertNextArg ( ) )
, actionCollection ( ) , " insert_next_arg " ) ;
, actionCollection ( ) , " insert_next_arg " ) ;
connect ( m_view , TQ T _SIGNAL( signalNextArgAvailable ( bool ) ) , action
connect ( m_view , TQ _SIGNAL( signalNextArgAvailable ( bool ) ) , action
, TQ T _SLOT( setEnabled ( bool ) ) ) ;
, TQ _SLOT( setEnabled ( bool ) ) ) ;
actionMenu = new TDEActionMenu ( i18n ( " Inser&t Argument " ) , " insert_arg "
actionMenu = new TDEActionMenu ( i18n ( " Inser&t Argument " ) , " insert_arg "
, actionCollection ( ) , " insert_arg " ) ;
, actionCollection ( ) , " insert_arg " ) ;
m_view - > setArgsMenu ( actionMenu - > popupMenu ( ) ) ;
m_view - > setArgsMenu ( actionMenu - > popupMenu ( ) ) ;
connect ( m_view , TQ T _SIGNAL( signalArgsAvailable ( bool ) ) , actionMenu
connect ( m_view , TQ _SIGNAL( signalArgsAvailable ( bool ) ) , actionMenu
, TQ T _SLOT( setEnabled ( bool ) ) ) ;
, TQ _SLOT( setEnabled ( bool ) ) ) ;
connect ( actionMenu , TQ T _SIGNAL( activated ( ) ) , m_view , TQ T _SLOT( insertNextArg ( ) ) ) ;
connect ( actionMenu , TQ _SIGNAL( activated ( ) ) , m_view , TQ _SLOT( insertNextArg ( ) ) ) ;
action = new TDEAction ( i18n ( " Show Arguments Menu " ) , CTRL + Key_Percent
action = new TDEAction ( i18n ( " Show Arguments Menu " ) , CTRL + Key_Percent
, m_view , TQ T _SLOT( showArgsMenu ( ) ) , actionCollection ( ) , " show_args_menu " ) ;
, m_view , TQ _SLOT( showArgsMenu ( ) ) , actionCollection ( ) , " show_args_menu " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
connect ( m_view , TQ T _SIGNAL( signalArgsAvailable ( bool ) ) , action
connect ( m_view , TQ _SIGNAL( signalArgsAvailable ( bool ) ) , action
, TQ T _SLOT( setEnabled ( bool ) ) ) ;
, TQ _SLOT( setEnabled ( bool ) ) ) ;
// next, the go-menu
// next, the go-menu
action = new TDEAction ( i18n ( " &Previous " ) , " go-previous " ,
action = new TDEAction ( i18n ( " &Previous " ) , " go-previous " ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Prior ) , m_view , TQ T _SLOT( gotoPrev ( ) ) ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Prior ) , m_view , TQ _SLOT( gotoPrev ( ) ) ,
actionCollection ( ) , " go_prev_entry " ) ;
actionCollection ( ) , " go_prev_entry " ) ;
action = new TDEAction ( i18n ( " &Next " ) , " go-next " ,
action = new TDEAction ( i18n ( " &Next " ) , " go-next " ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Next ) , m_view , TQ T _SLOT( gotoNext ( ) ) ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Next ) , m_view , TQ _SLOT( gotoNext ( ) ) ,
actionCollection ( ) , " go_next_entry " ) ;
actionCollection ( ) , " go_next_entry " ) ;
action = KStdAction : : goTo ( m_view , TQ T _SLOT( gotoEntry ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : goTo ( m_view , TQ _SLOT( gotoEntry ( ) ) , actionCollection ( ) ) ;
action - > setShortcut ( TDEStdAccel : : gotoLine ( ) ) ;
action - > setShortcut ( TDEStdAccel : : gotoLine ( ) ) ;
action = KStdAction : : firstPage ( m_view , TQ T _SLOT( gotoFirst ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : firstPage ( m_view , TQ _SLOT( gotoFirst ( ) ) , actionCollection ( ) ) ;
action - > setText ( i18n ( " &First Entry " ) ) ;
action - > setText ( i18n ( " &First Entry " ) ) ;
action - > setShortcut ( CTRL + ALT + Key_Home ) ;
action - > setShortcut ( CTRL + ALT + Key_Home ) ;
action = KStdAction : : lastPage ( m_view , TQ T _SLOT( gotoLast ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : lastPage ( m_view , TQ _SLOT( gotoLast ( ) ) , actionCollection ( ) ) ;
action - > setText ( i18n ( " &Last Entry " ) ) ;
action - > setText ( i18n ( " &Last Entry " ) ) ;
action - > setShortcut ( CTRL + ALT + Key_End ) ;
action - > setShortcut ( CTRL + ALT + Key_End ) ;
a_prevFoU = new TDEAction ( i18n ( " P&revious Fuzzy or Untranslated " ) , " prevfuzzyuntrans " ,
a_prevFoU = new TDEAction ( i18n ( " P&revious Fuzzy or Untranslated " ) , " prevfuzzyuntrans " ,
CTRL + SHIFT + Key_Prior , m_view ,
CTRL + SHIFT + Key_Prior , m_view ,
TQ T _SLOT( gotoPrevFuzzyOrUntrans ( ) ) , actionCollection ( ) , " go_prev_fuzzyUntr " ) ;
TQ _SLOT( gotoPrevFuzzyOrUntrans ( ) ) , actionCollection ( ) , " go_prev_fuzzyUntr " ) ;
a_nextFoU = new TDEAction ( i18n ( " N&ext Fuzzy or Untranslated " ) , " nextfuzzyuntrans " ,
a_nextFoU = new TDEAction ( i18n ( " N&ext Fuzzy or Untranslated " ) , " nextfuzzyuntrans " ,
CTRL + SHIFT + Key_Next , m_view ,
CTRL + SHIFT + Key_Next , m_view ,
TQ T _SLOT( gotoNextFuzzyOrUntrans ( ) ) , actionCollection ( ) , " go_next_fuzzyUntr " ) ;
TQ _SLOT( gotoNextFuzzyOrUntrans ( ) ) , actionCollection ( ) , " go_next_fuzzyUntr " ) ;
a_prevFuzzy = new TDEAction ( i18n ( " Pre&vious Fuzzy " ) , " prevfuzzy " ,
a_prevFuzzy = new TDEAction ( i18n ( " Pre&vious Fuzzy " ) , " prevfuzzy " ,
CTRL + Key_Prior , m_view ,
CTRL + Key_Prior , m_view ,
TQ T _SLOT( gotoPrevFuzzy ( ) ) , actionCollection ( ) , " go_prev_fuzzy " ) ;
TQ _SLOT( gotoPrevFuzzy ( ) ) , actionCollection ( ) , " go_prev_fuzzy " ) ;
a_nextFuzzy = new TDEAction ( i18n ( " Ne&xt Fuzzy " ) , " nextfuzzy " ,
a_nextFuzzy = new TDEAction ( i18n ( " Ne&xt Fuzzy " ) , " nextfuzzy " ,
CTRL + Key_Next , m_view ,
CTRL + Key_Next , m_view ,
TQ T _SLOT( gotoNextFuzzy ( ) ) , actionCollection ( ) , " go_next_fuzzy " ) ;
TQ _SLOT( gotoNextFuzzy ( ) ) , actionCollection ( ) , " go_next_fuzzy " ) ;
a_prevUntrans = new TDEAction ( i18n ( " Prev&ious Untranslated " ) , " prevuntranslated " ,
a_prevUntrans = new TDEAction ( i18n ( " Prev&ious Untranslated " ) , " prevuntranslated " ,
ALT + Key_Prior , m_view ,
ALT + Key_Prior , m_view ,
TQ T _SLOT( gotoPrevUntranslated ( ) ) , actionCollection ( ) , " go_prev_untrans " ) ;
TQ _SLOT( gotoPrevUntranslated ( ) ) , actionCollection ( ) , " go_prev_untrans " ) ;
a_nextUntrans = new TDEAction ( i18n ( " Nex&t Untranslated " ) , " nextuntranslated " ,
a_nextUntrans = new TDEAction ( i18n ( " Nex&t Untranslated " ) , " nextuntranslated " ,
ALT + Key_Next , m_view ,
ALT + Key_Next , m_view ,
TQ T _SLOT( gotoNextUntranslated ( ) ) , actionCollection ( ) , " go_next_untrans " ) ;
TQ _SLOT( gotoNextUntranslated ( ) ) , actionCollection ( ) , " go_next_untrans " ) ;
action = new TDEAction ( i18n ( " Previo&us Error " ) , " preverror " ,
action = new TDEAction ( i18n ( " Previo&us Error " ) , " preverror " ,
SHIFT + Key_Prior , m_view ,
SHIFT + Key_Prior , m_view ,
TQ T _SLOT( gotoPrevError ( ) ) , actionCollection ( ) , " go_prev_error " ) ;
TQ _SLOT( gotoPrevError ( ) ) , actionCollection ( ) , " go_prev_error " ) ;
action = new TDEAction ( i18n ( " Next Err&or " ) , " nexterror " ,
action = new TDEAction ( i18n ( " Next Err&or " ) , " nexterror " ,
SHIFT + Key_Next , m_view ,
SHIFT + Key_Next , m_view ,
TQ T _SLOT( gotoNextError ( ) ) , actionCollection ( ) , " go_next_error " ) ;
TQ _SLOT( gotoNextError ( ) ) , actionCollection ( ) , " go_next_error " ) ;
action = new TDEAction ( i18n ( " &Back in History " ) , " back " , ALT + Key_Left , m_view ,
action = new TDEAction ( i18n ( " &Back in History " ) , " back " , ALT + Key_Left , m_view ,
TQ T _SLOT( backHistory ( ) ) , actionCollection ( ) , " go_back_history " ) ;
TQ _SLOT( backHistory ( ) ) , actionCollection ( ) , " go_back_history " ) ;
action = new TDEAction ( i18n ( " For&ward in History " ) , " forward " , ALT + Key_Right , m_view ,
action = new TDEAction ( i18n ( " For&ward in History " ) , " forward " , ALT + Key_Right , m_view ,
TQ T _SLOT( forwardHistory ( ) ) , actionCollection ( ) , " go_forward_history " ) ;
TQ _SLOT( forwardHistory ( ) ) , actionCollection ( ) , " go_forward_history " ) ;
// the search menu
// the search menu
actionMenu = new TDEActionMenu ( i18n ( " &Find Text " ) ,
actionMenu = new TDEActionMenu ( i18n ( " &Find Text " ) ,
" transsearch " , actionCollection ( ) , " dict_search_all " ) ;
" transsearch " , actionCollection ( ) , " dict_search_all " ) ;
connect ( actionMenu , TQ T _SIGNAL( activated ( ) ) , m_view , TQ T _SLOT( startSearch ( ) ) ) ;
connect ( actionMenu , TQ _SIGNAL( activated ( ) ) , m_view , TQ _SLOT( startSearch ( ) ) ) ;
dictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
dictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
connect ( dictMenu , TQ T _SIGNAL( activated ( const TQString ) ) , m_view
connect ( dictMenu , TQ _SIGNAL( activated ( const TQString ) ) , m_view
, TQ T _SLOT( startSearch ( const TQString ) ) ) ;
, TQ _SLOT( startSearch ( const TQString ) ) ) ;
actionMenu = new TDEActionMenu ( i18n ( " F&ind Selected Text " ) ,
actionMenu = new TDEActionMenu ( i18n ( " F&ind Selected Text " ) ,
" transsearch " , actionCollection ( ) , " dict_search_selected " ) ;
" transsearch " , actionCollection ( ) , " dict_search_selected " ) ;
connect ( actionMenu , TQ T _SIGNAL( activated ( ) ) , m_view , TQ T _SLOT( startSelectionSearch ( ) ) ) ;
connect ( actionMenu , TQ _SIGNAL( activated ( ) ) , m_view , TQ _SLOT( startSelectionSearch ( ) ) ) ;
selectionDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
selectionDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
connect ( selectionDictMenu , TQ T _SIGNAL( activated ( const TQString ) ) , m_view
connect ( selectionDictMenu , TQ _SIGNAL( activated ( const TQString ) ) , m_view
, TQ T _SLOT( startSelectionSearch ( const TQString ) ) ) ;
, TQ _SLOT( startSelectionSearch ( const TQString ) ) ) ;
actionMenu = new TDEActionMenu ( i18n ( " &Edit Dictionary " ) ,
actionMenu = new TDEActionMenu ( i18n ( " &Edit Dictionary " ) ,
" transsearch " , actionCollection ( ) , " dict_edit " ) ;
" transsearch " , actionCollection ( ) , " dict_edit " ) ;
editDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
editDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
connect ( editDictMenu , TQ T _SIGNAL( activated ( const TQString ) ) , m_view
connect ( editDictMenu , TQ _SIGNAL( activated ( const TQString ) ) , m_view
, TQ T _SLOT( editDictionary ( const TQString ) ) ) ;
, TQ _SLOT( editDictionary ( const TQString ) ) ) ;
actionMenu = new TDEActionMenu ( i18n ( " Con&figure Dictionary " ) ,
actionMenu = new TDEActionMenu ( i18n ( " Con&figure Dictionary " ) ,
" transsearch " , actionCollection ( ) , " dict_configure " ) ;
" transsearch " , actionCollection ( ) , " dict_configure " ) ;
configDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
configDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
connect ( configDictMenu , TQ T _SIGNAL( activated ( const TQString ) ) , m_view
connect ( configDictMenu , TQ _SIGNAL( activated ( const TQString ) ) , m_view
, TQ T _SLOT( configureDictionary ( const TQString ) ) ) ;
, TQ _SLOT( configureDictionary ( const TQString ) ) ) ;
actionMenu = new TDEActionMenu ( i18n ( " About Dictionary " ) , " transsearch " ,
actionMenu = new TDEActionMenu ( i18n ( " About Dictionary " ) , " transsearch " ,
actionCollection ( ) , " dict_about " ) ;
actionCollection ( ) , " dict_about " ) ;
aboutDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
aboutDictMenu = new DictionaryMenu ( actionMenu - > popupMenu ( ) , actionCollection ( ) , this ) ;
connect ( aboutDictMenu , TQ T _SIGNAL( activated ( const TQString ) ) , m_view
connect ( aboutDictMenu , TQ _SIGNAL( activated ( const TQString ) ) , m_view
, TQ T _SLOT( aboutDictionary ( const TQString ) ) ) ;
, TQ _SLOT( aboutDictionary ( const TQString ) ) ) ;
buildDictMenus ( ) ;
buildDictMenus ( ) ;
// the project menu
// the project menu
action = new TDEAction ( i18n ( " &New... " ) , " document-new "
action = new TDEAction ( i18n ( " &New... " ) , " document-new "
, this , TQ T _SLOT( projectNew ( ) ) , actionCollection ( )
, this , TQ _SLOT( projectNew ( ) ) , actionCollection ( )
, " project_new " ) ;
, " project_new " ) ;
action = new TDEAction ( i18n ( " &Open... " ) , " document-open "
action = new TDEAction ( i18n ( " &Open... " ) , " document-open "
, this , TQ T _SLOT( projectOpen ( ) ) , actionCollection ( )
, this , TQ _SLOT( projectOpen ( ) ) , actionCollection ( )
, " project_open " ) ;
, " project_open " ) ;
action = new TDEAction ( i18n ( " C&lose " ) , " window-close "
action = new TDEAction ( i18n ( " C&lose " ) , " window-close "
, this , TQ T _SLOT( projectClose ( ) ) , actionCollection ( )
, this , TQ _SLOT( projectClose ( ) ) , actionCollection ( )
, " project_close " ) ;
, " project_close " ) ;
action - > setEnabled ( _project - > filename ( ) ! = KBabel : : ProjectManager : : defaultProjectName ( ) ) ;
action - > setEnabled ( _project - > filename ( ) ! = KBabel : : ProjectManager : : defaultProjectName ( ) ) ;
action = new TDEAction ( i18n ( " &Configure... " ) , " configure "
action = new TDEAction ( i18n ( " &Configure... " ) , " configure "
, this , TQ T _SLOT( projectConfigure ( ) ) , actionCollection ( )
, this , TQ _SLOT( projectConfigure ( ) ) , actionCollection ( )
, " project_settings " ) ;
, " project_settings " ) ;
a_recentprojects = new TDERecentFilesAction ( i18n ( " Open &Recent " ) , 0 , this , TQ T _SLOT( projectOpenRecent ( const KURL & ) ) , actionCollection ( ) , " recent_projects " ) ;
a_recentprojects = new TDERecentFilesAction ( i18n ( " Open &Recent " ) , 0 , this , TQ _SLOT( projectOpenRecent ( const KURL & ) ) , actionCollection ( ) , " recent_projects " ) ;
// the tools menu
// the tools menu
action = new TDEAction ( i18n ( " &Spell Check... " ) , " tools-check-spelling " , CTRL + Key_I
action = new TDEAction ( i18n ( " &Spell Check... " ) , " tools-check-spelling " , CTRL + Key_I
, m_view , TQ T _SLOT( spellcheckCommon ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( spellcheckCommon ( ) ) , actionCollection ( )
, " spellcheck_common " ) ;
, " spellcheck_common " ) ;
action = new TDEAction ( i18n ( " &Check All... " ) , " spellcheck_all " , 0
action = new TDEAction ( i18n ( " &Check All... " ) , " spellcheck_all " , 0
, m_view , TQ T _SLOT( spellcheckAll ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( spellcheckAll ( ) ) , actionCollection ( )
, " spellcheck_all " ) ;
, " spellcheck_all " ) ;
action = new TDEAction ( i18n ( " C&heck From Cursor Position... " ) , " spellcheck_from_cursor " , 0
action = new TDEAction ( i18n ( " C&heck From Cursor Position... " ) , " spellcheck_from_cursor " , 0
, m_view , TQ T _SLOT( spellcheckFromCursor ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( spellcheckFromCursor ( ) ) , actionCollection ( )
, " spellcheck_from_cursor " ) ;
, " spellcheck_from_cursor " ) ;
action = new TDEAction ( i18n ( " Ch&eck Current... " ) , " spellcheck_actual " , 0
action = new TDEAction ( i18n ( " Ch&eck Current... " ) , " spellcheck_actual " , 0
, m_view , TQ T _SLOT( spellcheckCurrent ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( spellcheckCurrent ( ) ) , actionCollection ( )
, " spellcheck_current " ) ;
, " spellcheck_current " ) ;
action = new TDEAction ( i18n ( " Check Fro&m Current to End of File... " ) , 0
action = new TDEAction ( i18n ( " Check Fro&m Current to End of File... " ) , 0
, m_view , TQ T _SLOT( spellcheckFromCurrent ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( spellcheckFromCurrent ( ) ) , actionCollection ( )
, " spellcheck_from_current " ) ;
, " spellcheck_from_current " ) ;
action = new TDEAction ( i18n ( " Chec&k Selected Text... " ) , " spellcheck_selected " , 0
action = new TDEAction ( i18n ( " Chec&k Selected Text... " ) , " spellcheck_selected " , 0
, m_view , TQ T _SLOT( spellcheckMarked ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( spellcheckMarked ( ) ) , actionCollection ( )
, " spellcheck_marked " ) ;
, " spellcheck_marked " ) ;
TDEToggleAction * toggleAction ;
TDEToggleAction * toggleAction ;
toggleAction = new TDEToggleAction ( i18n ( " &Diffmode " ) , " autodiff " , 0
toggleAction = new TDEToggleAction ( i18n ( " &Diffmode " ) , " autodiff " , 0
, actionCollection ( ) , " diff_toggleDiff " ) ;
, actionCollection ( ) , " diff_toggleDiff " ) ;
connect ( toggleAction , TQ T _SIGNAL( toggled ( bool ) ) , m_view , TQ T _SLOT( toggleAutoDiff ( bool ) ) ) ;
connect ( toggleAction , TQ _SIGNAL( toggled ( bool ) ) , m_view , TQ _SLOT( toggleAutoDiff ( bool ) ) ) ;
connect ( m_view , TQ T _SIGNAL( signalDiffEnabled ( bool ) ) , toggleAction
connect ( m_view , TQ _SIGNAL( signalDiffEnabled ( bool ) ) , toggleAction
, TQ T _SLOT( setChecked ( bool ) ) ) ;
, TQ _SLOT( setChecked ( bool ) ) ) ;
toggleAction - > setChecked ( m_view - > autoDiffEnabled ( ) ) ;
toggleAction - > setChecked ( m_view - > autoDiffEnabled ( ) ) ;
action = new TDEAction ( i18n ( " &Show Diff " ) , " diff " , Key_F5
action = new TDEAction ( i18n ( " &Show Diff " ) , " diff " , Key_F5
, m_view , TQ T _SLOT( diff ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( diff ( ) ) , actionCollection ( )
, " diff_diff " ) ;
, " diff_diff " ) ;
action = new TDEAction ( i18n ( " S&how Original Text " ) , " contents " , Key_F6
action = new TDEAction ( i18n ( " S&how Original Text " ) , " contents " , Key_F6
, m_view , TQ T _SLOT( diffShowOrig ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( diffShowOrig ( ) ) , actionCollection ( )
, " diff_showOrig " ) ;
, " diff_showOrig " ) ;
action = new TDEAction ( i18n ( " &Open File for Diff " ) , " document-open " , 0
action = new TDEAction ( i18n ( " &Open File for Diff " ) , " document-open " , 0
, m_view , TQ T _SLOT( openDiffFile ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( openDiffFile ( ) ) , actionCollection ( )
, " diff_openFile " ) ;
, " diff_openFile " ) ;
action = new TDEAction ( i18n ( " &Rough Translation... " ) , 0
action = new TDEAction ( i18n ( " &Rough Translation... " ) , 0
, m_view , TQ T _SLOT( roughTranslation ( ) ) , actionCollection ( )
, m_view , TQ _SLOT( roughTranslation ( ) ) , actionCollection ( )
, " rough_translation " ) ;
, " rough_translation " ) ;
action = new TDEAction ( i18n ( " &Catalog Manager... " ) , " catalogmanager " , 0 , this ,
action = new TDEAction ( i18n ( " &Catalog Manager... " ) , " catalogmanager " , 0 , this ,
TQ T _SLOT( openCatalogManager ( ) ) , actionCollection ( ) , " open_catalog_manager " ) ;
TQ _SLOT( openCatalogManager ( ) ) , actionCollection ( ) , " open_catalog_manager " ) ;
new TDEAction ( i18n ( " Toggle Edit Mode " ) , 0 , Key_Insert , this , TQ T _SLOT( toggleEditMode ( ) ) , actionCollection ( ) , " toggle_insert_mode " ) ;
new TDEAction ( i18n ( " Toggle Edit Mode " ) , 0 , Key_Insert , this , TQ _SLOT( toggleEditMode ( ) ) , actionCollection ( ) , " toggle_insert_mode " ) ;
new TDEAction ( i18n ( " &Word Count " ) , 0 , m_view , TQ T _SLOT( wordCount ( ) ) , actionCollection ( ) , " word_count " ) ;
new TDEAction ( i18n ( " &Word Count " ) , 0 , m_view , TQ _SLOT( wordCount ( ) ) , actionCollection ( ) , " word_count " ) ;
// next, the settings menu
// next, the settings menu
createStandardStatusBarAction ( ) ;
createStandardStatusBarAction ( ) ;
KStdAction : : configureToolbars ( this , TQ T _SLOT( optionsEditToolbars ( ) ) , actionCollection ( ) ) ;
KStdAction : : configureToolbars ( this , TQ _SLOT( optionsEditToolbars ( ) ) , actionCollection ( ) ) ;
KStdAction : : keyBindings ( guiFactory ( ) , TQ T _SLOT( configureShortcuts ( ) ) , actionCollection ( ) ) ;
KStdAction : : keyBindings ( guiFactory ( ) , TQ _SLOT( configureShortcuts ( ) ) , actionCollection ( ) ) ;
KStdAction : : preferences ( this , TQ T _SLOT( optionsPreferences ( ) ) , actionCollection ( ) ) ;
KStdAction : : preferences ( this , TQ _SLOT( optionsPreferences ( ) ) , actionCollection ( ) ) ;
setStandardToolBarMenuEnabled ( true ) ;
setStandardToolBarMenuEnabled ( true ) ;
action = new TDEAction ( i18n ( " &Stop Searching " ) , " process-stop " , Key_Escape , m_view ,
action = new TDEAction ( i18n ( " &Stop Searching " ) , " process-stop " , Key_Escape , m_view ,
TQ T _SLOT( stopSearch ( ) ) , actionCollection ( ) , " stop_search " ) ;
TQ _SLOT( stopSearch ( ) ) , actionCollection ( ) , " stop_search " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
new TDEAction ( i18n ( " &Gettext Info " ) , 0 , this ,
new TDEAction ( i18n ( " &Gettext Info " ) , 0 , this ,
TQ T _SLOT( gettextHelp ( ) ) , actionCollection ( ) , " help_gettext " ) ;
TQ _SLOT( gettextHelp ( ) ) , actionCollection ( ) , " help_gettext " ) ;
// the bookmarks menu
// the bookmarks menu
action = KStdAction : : addBookmark ( this , TQ T _SLOT( slotAddBookmark ( ) ) ,
action = KStdAction : : addBookmark ( this , TQ _SLOT( slotAddBookmark ( ) ) ,
actionCollection ( ) , " add_bookmark " ) ;
actionCollection ( ) , " add_bookmark " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
// this action is now connected to dummySlot(), and later reconnected
// this action is now connected to dummySlot(), and later reconnected
// to bmHandler after that object actually is created
// to bmHandler after that object actually is created
new TDEAction ( i18n ( " Clear Bookmarks " ) , 0 , this , TQ T _SLOT( dummySlot ( ) ) ,
new TDEAction ( i18n ( " Clear Bookmarks " ) , 0 , this , TQ _SLOT( dummySlot ( ) ) ,
actionCollection ( ) , " clear_bookmarks " ) ;
actionCollection ( ) , " clear_bookmarks " ) ;
setupDynamicActions ( ) ;
setupDynamicActions ( ) ;
@ -759,20 +759,20 @@ void KBabelMW::setupDynamicActions()
TQValueList < KDataToolInfo > tools = ToolAction : : validationTools ( ) ;
TQValueList < KDataToolInfo > tools = ToolAction : : validationTools ( ) ;
TQPtrList < TDEAction > actions = ToolAction : : dataToolActionList (
TQPtrList < TDEAction > actions = ToolAction : : dataToolActionList (
tools , m_view , TQ T _SLOT( validateUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
tools , m_view , TQ _SLOT( validateUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
" validate " , false , actionCollection ( ) ) ;
" validate " , false , actionCollection ( ) ) ;
TDEActionMenu * m_menu = new TDEActionMenu ( i18n ( " &Validation " ) , actionCollection ( ) , " dynamic_validation_tools " ) ;
TDEActionMenu * m_menu = new TDEActionMenu ( i18n ( " &Validation " ) , actionCollection ( ) , " dynamic_validation_tools " ) ;
TDEAction * ac = new TDEAction ( i18n ( " Perform &All Checks " ) , CTRL + Key_E , m_view ,
TDEAction * ac = new TDEAction ( i18n ( " Perform &All Checks " ) , CTRL + Key_E , m_view ,
TQ T _SLOT( checkAll ( ) ) , actionCollection ( ) , " check_all " ) ;
TQ _SLOT( checkAll ( ) ) , actionCollection ( ) , " check_all " ) ;
ac - > setEnabled ( false ) ;
ac - > setEnabled ( false ) ;
m_menu - > insert ( ac ) ;
m_menu - > insert ( ac ) ;
m_menu - > insert ( new TDEActionSeparator ( ) ) ;
m_menu - > insert ( new TDEActionSeparator ( ) ) ;
ac = new TDEAction ( i18n ( " C&heck Syntax " ) , CTRL + Key_T , m_view ,
ac = new TDEAction ( i18n ( " C&heck Syntax " ) , CTRL + Key_T , m_view ,
TQ T _SLOT( checkSyntax ( ) ) , actionCollection ( ) , " check_syntax " ) ;
TQ _SLOT( checkSyntax ( ) ) , actionCollection ( ) , " check_syntax " ) ;
ac - > setEnabled ( false ) ;
ac - > setEnabled ( false ) ;
m_menu - > insert ( ac ) ;
m_menu - > insert ( ac ) ;
@ -801,7 +801,7 @@ void KBabelMW::setupDynamicActions()
// create corresponding actions
// create corresponding actions
actions = ToolAction : : dataToolActionList (
actions = ToolAction : : dataToolActionList (
modifyTools , m_view , TQ T _SLOT( modifyUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
modifyTools , m_view , TQ _SLOT( modifyUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
" validate " , true , actionCollection ( ) ) ;
" validate " , true , actionCollection ( ) ) ;
// skip validation actions
// skip validation actions
@ -833,7 +833,7 @@ void KBabelMW::setupDynamicActions()
// create corresponding actions
// create corresponding actions
actions = ToolAction : : dataToolActionList (
actions = ToolAction : : dataToolActionList (
modifyTools , m_view , TQ T _SLOT( modifyUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
modifyTools , m_view , TQ _SLOT( modifyUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
" validate " , true , actionCollection ( ) ) ;
" validate " , true , actionCollection ( ) ) ;
// skip validation actions
// skip validation actions
@ -844,7 +844,7 @@ void KBabelMW::setupDynamicActions()
// create corresponding actions
// create corresponding actions
actions = ToolAction : : dataToolActionList (
actions = ToolAction : : dataToolActionList (
modifyTools , m_view , TQ T _SLOT( modifyCatalogUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
modifyTools , m_view , TQ _SLOT( modifyCatalogUsingTool ( const KDataToolInfo & , const TQString & ) ) ,
" validate " , true , actionCollection ( ) ) ;
" validate " , true , actionCollection ( ) ) ;
// insert tools
// insert tools
@ -923,7 +923,7 @@ bool KBabelMW::queryClose()
{
{
if ( m_view - > isSearching ( ) )
if ( m_view - > isSearching ( ) )
{
{
connect ( m_view , TQ T _SIGNAL( signalSearchActive ( bool ) ) , this , TQ T _SLOT( quit ( ) ) ) ;
connect ( m_view , TQ _SIGNAL( signalSearchActive ( bool ) ) , this , TQ _SLOT( quit ( ) ) ) ;
m_view - > stopSearch ( ) ;
m_view - > stopSearch ( ) ;
return false ;
return false ;
}
}
@ -932,7 +932,7 @@ bool KBabelMW::queryClose()
{
{
// stop the activity and try again
// stop the activity and try again
m_view - > catalog ( ) - > stop ( ) ;
m_view - > catalog ( ) - > stop ( ) ;
TQTimer : : singleShot ( 0 , this , TQ T _SLOT( close ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQ _SLOT( close ( ) ) ) ;
return false ;
return false ;
}
}
@ -1067,7 +1067,7 @@ void KBabelMW::addToRecentFiles(KURL url)
void KBabelMW : : fileSave ( )
void KBabelMW : : fileSave ( )
{
{
// do it asynchronously due to tdelibs bug
// do it asynchronously due to tdelibs bug
TQTimer : : singleShot ( 0 , this , TQ T _SLOT( fileSave_internal ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQ _SLOT( fileSave_internal ( ) ) ) ;
}
}
void KBabelMW : : fileSave_internal ( )
void KBabelMW : : fileSave_internal ( )
@ -1181,7 +1181,7 @@ void KBabelMW::optionsEditToolbars()
{
{
saveMainWindowSettings ( TDEGlobal : : config ( ) , " View " ) ;
saveMainWindowSettings ( TDEGlobal : : config ( ) , " View " ) ;
KEditToolbar dlg ( actionCollection ( ) ) ;
KEditToolbar dlg ( actionCollection ( ) ) ;
connect ( & dlg , TQ T _SIGNAL( newToolbarConfig ( ) ) , this , TQ T _SLOT( newToolbarConfig ( ) ) ) ;
connect ( & dlg , TQ _SIGNAL( newToolbarConfig ( ) ) , this , TQ _SLOT( newToolbarConfig ( ) ) ) ;
dlg . exec ( ) ;
dlg . exec ( ) ;
}
}
@ -1198,8 +1198,8 @@ void KBabelMW::optionsPreferences()
_prefDialog = new KBabelPreferences ( m_view - > dictionaries ( ) ) ;
_prefDialog = new KBabelPreferences ( m_view - > dictionaries ( ) ) ;
prefDialogs . append ( _prefDialog ) ;
prefDialogs . append ( _prefDialog ) ;
connect ( _prefDialog , TQ T _SIGNAL( settingsChanged ( ) )
connect ( _prefDialog , TQ _SIGNAL( settingsChanged ( ) )
, m_view , TQ T _SLOT( updateSettings ( ) ) ) ;
, m_view , TQ _SLOT( updateSettings ( ) ) ) ;
}
}
int prefHeight = _prefDialog - > height ( ) ;
int prefHeight = _prefDialog - > height ( ) ;
@ -1651,7 +1651,7 @@ void KBabelMW::spellcheckMoreFiles(TQStringList filelist)
{
{
if ( filelist . isEmpty ( ) ) return ;
if ( filelist . isEmpty ( ) ) return ;
_toSpellcheck = filelist ;
_toSpellcheck = filelist ;
connect ( m_view , TQ T _SIGNAL( signalSpellcheckDone ( int ) ) , this , TQ T _SLOT( spellcheckDone ( int ) ) ) ;
connect ( m_view , TQ _SIGNAL( signalSpellcheckDone ( int ) ) , this , TQ _SLOT( spellcheckDone ( int ) ) ) ;
spellcheckDone ( KS_IGNORE ) ; // use something else than KS_STOP
spellcheckDone ( KS_IGNORE ) ; // use something else than KS_STOP
}
}
@ -1659,7 +1659,7 @@ void KBabelMW::spellcheckDone( int result)
{
{
if ( _toSpellcheck . isEmpty ( ) | | result = = KS_STOP )
if ( _toSpellcheck . isEmpty ( ) | | result = = KS_STOP )
{
{
disconnect ( m_view , TQ T _SIGNAL( signalSpellcheckDone ( int ) ) , this , TQ T _SLOT( spellcheckDone ( int ) ) ) ;
disconnect ( m_view , TQ _SIGNAL( signalSpellcheckDone ( int ) ) , this , TQ _SLOT( spellcheckDone ( int ) ) ) ;
KMessageBox : : information ( this , i18n ( " MessageBox text " , " Spellchecking of multiple files is finished. " ) ,
KMessageBox : : information ( this , i18n ( " MessageBox text " , " Spellchecking of multiple files is finished. " ) ,
i18n ( " MessageBox caption " , " Spellcheck Done " ) ) ;
i18n ( " MessageBox caption " , " Spellcheck Done " ) ) ;
}
}
@ -1670,7 +1670,7 @@ void KBabelMW::spellcheckDone( int result)
if ( m_view - > isModified ( ) ) fileSave ( ) ;
if ( m_view - > isModified ( ) ) fileSave ( ) ;
open ( KURL ( file ) , TQString ( ) , false ) ;
open ( KURL ( file ) , TQString ( ) , false ) ;
kdDebug ( KBABEL ) < < " Starting another spellcheck " < < endl ;
kdDebug ( KBABEL ) < < " Starting another spellcheck " < < endl ;
TQTimer : : singleShot ( 1 , m_view , TQ T _SLOT( spellcheckAllMulti ( ) ) ) ;
TQTimer : : singleShot ( 1 , m_view , TQ _SLOT( spellcheckAllMulti ( ) ) ) ;
}
}
}
}
@ -1792,8 +1792,8 @@ void KBabelMW::projectConfigure()
if ( ! _projectDialog )
if ( ! _projectDialog )
{
{
_projectDialog = new ProjectDialog ( _project ) ;
_projectDialog = new ProjectDialog ( _project ) ;
connect ( _projectDialog , TQ T _SIGNAL ( settingsChanged ( ) )
connect ( _projectDialog , TQ _SIGNAL ( settingsChanged ( ) )
, m_view , TQ T _SLOT ( updateProjectSettings ( ) ) ) ;
, m_view , TQ _SLOT ( updateProjectSettings ( ) ) ) ;
}
}
int prefHeight = _projectDialog - > height ( ) ;
int prefHeight = _projectDialog - > height ( ) ;