@ -90,7 +90,7 @@ TQStringList CatalogManager::_foundFilesList;
TQStringList CatalogManager : : _toBeSearched ;
TQStringList CatalogManager : : _toBeSearched ;
CatalogManager : : CatalogManager ( TQString configFile )
CatalogManager : : CatalogManager ( TQString configFile )
: K MainWindow( 0 , 0 )
: TDE MainWindow( 0 , 0 )
{
{
if ( configFile . isEmpty ( ) )
if ( configFile . isEmpty ( ) )
configFile = KBabel : : ProjectManager : : defaultProjectName ( ) ;
configFile = KBabel : : ProjectManager : : defaultProjectName ( ) ;
@ -216,16 +216,16 @@ void CatalogManager::setupActions()
{
{
TDEGlobal : : iconLoader ( ) - > addAppDir ( " kbabel " ) ;
TDEGlobal : : iconLoader ( ) - > addAppDir ( " kbabel " ) ;
K Action * action ;
TDE Action * action ;
// the file menu
// the file menu
action = new K Action( i18n ( " &Open " ) , CTRL + Key_O , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " &Open " ) , CTRL + Key_O , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( slotOpenFile ( ) ) , actionCollection ( ) , " open " ) ;
TQT_SLOT ( slotOpenFile ( ) ) , actionCollection ( ) , " open " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " &Open Template " ) , Key_Space , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " &Open Template " ) , Key_Space , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( slotOpenTemplate ( ) ) , actionCollection ( ) , " open_template " ) ;
TQT_SLOT ( slotOpenTemplate ( ) ) , actionCollection ( ) , " open_template " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Open in &New Window " ) , CTRL + SHIFT + Key_O , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " Open in &New Window " ) , CTRL + SHIFT + Key_O , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( slotOpenFileInNewWindow ( ) ) , actionCollection ( ) , " open_new_window " ) ;
TQT_SLOT ( slotOpenFileInNewWindow ( ) ) , actionCollection ( ) , " open_new_window " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
@ -234,45 +234,45 @@ void CatalogManager::setupActions()
actionMap [ " open_template " ] = NEEDS_POT ;
actionMap [ " open_template " ] = NEEDS_POT ;
// the edit menu
// the edit menu
action = new K Action( i18n ( " Fi&nd in Files... " ) , CTRL + Key_F , TQT_TQOBJECT ( this ) ,
action = new TDE Action( i18n ( " Fi&nd in Files... " ) , CTRL + Key_F , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( find ( ) ) , actionCollection ( ) , " find_in_files " ) ;
TQT_SLOT ( find ( ) ) , actionCollection ( ) , " find_in_files " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Re&place in Files... " ) , CTRL + Key_R , TQT_TQOBJECT ( this ) ,
action = new TDE Action( i18n ( " Re&place in Files... " ) , CTRL + Key_R , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( replace ( ) ) , actionCollection ( ) , " replace_in_files " ) ;
TQT_SLOT ( replace ( ) ) , actionCollection ( ) , " replace_in_files " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " &Stop Searching " ) , " stop " , Key_Escape , TQT_TQOBJECT ( this ) ,
action = new TDE Action( i18n ( " &Stop Searching " ) , " stop " , Key_Escape , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( stopSearching ( ) ) , actionCollection ( ) , " stop_search " ) ;
TQT_SLOT ( stopSearching ( ) ) , actionCollection ( ) , " stop_search " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " &Reload " ) , " reload " , K StdAccel: : reload ( ) , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " &Reload " ) , " reload " , TDE StdAccel: : reload ( ) , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( updateCurrent ( ) ) , actionCollection ( ) , " reload " ) ;
TQT_SLOT ( updateCurrent ( ) ) , actionCollection ( ) , " reload " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
// the marking menu
// the marking menu
action = new K Action( i18n ( " &Toggle Marking " ) , CTRL + Key_M , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " &Toggle Marking " ) , CTRL + Key_M , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( toggleMark ( ) ) , actionCollection ( ) , " toggle_marking " ) ;
TQT_SLOT ( toggleMark ( ) ) , actionCollection ( ) , " toggle_marking " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Remove Marking " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " Remove Marking " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( slotClearMarksInDir ( ) ) , actionCollection ( ) , " remove_marking " ) ;
TQT_SLOT ( slotClearMarksInDir ( ) ) , actionCollection ( ) , " remove_marking " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Toggle All Markings " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " Toggle All Markings " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( toggleAllMarks ( ) ) , actionCollection ( ) , " toggle_all_marking " ) ;
TQT_SLOT ( toggleAllMarks ( ) ) , actionCollection ( ) , " toggle_all_marking " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Remove All Markings " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " Remove All Markings " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( clearAllMarks ( ) ) , actionCollection ( ) , " remove_all_marking " ) ;
TQT_SLOT ( clearAllMarks ( ) ) , actionCollection ( ) , " remove_all_marking " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Mark Modified Files " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " Mark Modified Files " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( markModifiedFiles ( ) ) , actionCollection ( ) , " mark_modified_files " ) ;
TQT_SLOT ( markModifiedFiles ( ) ) , actionCollection ( ) , " mark_modified_files " ) ;
// fixme to enabling this when loading is done using updateFinished() signal
// fixme to enabling this when loading is done using updateFinished() signal
action - > setEnabled ( true ) ;
action - > setEnabled ( true ) ;
action = new K Action( i18n ( " &Load Markings... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " &Load Markings... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( loadMarks ( ) ) , actionCollection ( ) , " load_marking " ) ;
TQT_SLOT ( loadMarks ( ) ) , actionCollection ( ) , " load_marking " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " &Save Markings... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
action = new TDE Action( i18n ( " &Save Markings... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( saveMarks ( ) ) , actionCollection ( ) , " save_marking " ) ;
TQT_SLOT ( saveMarks ( ) ) , actionCollection ( ) , " save_marking " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
( void ) new K Action( i18n ( " &Mark Files... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " &Mark Files... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( slotMarkPattern ( ) ) , actionCollection ( ) , " mark_pattern " ) ;
TQT_SLOT ( slotMarkPattern ( ) ) , actionCollection ( ) , " mark_pattern " ) ;
( void ) new K Action( i18n ( " &Unmark Files... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " &Unmark Files... " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( slotUnmarkPattern ( ) ) , actionCollection ( ) , " unmark_pattern " ) ;
TQT_SLOT ( slotUnmarkPattern ( ) ) , actionCollection ( ) , " unmark_pattern " ) ;
actionMap [ " remove_marking " ] = NEEDS_MARK ;
actionMap [ " remove_marking " ] = NEEDS_MARK ;
@ -281,103 +281,103 @@ void CatalogManager::setupActions()
actionMap [ " unmark_pattern " ] = NEEDS_DIR | NEEDS_MARK ;
actionMap [ " unmark_pattern " ] = NEEDS_DIR | NEEDS_MARK ;
// go menu
// go menu
action = new K Action( i18n ( " Nex&t Untranslated " ) , " nextuntranslated " , ALT + Key_Next ,
action = new TDE Action( i18n ( " Nex&t Untranslated " ) , " nextuntranslated " , ALT + Key_Next ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextUntranslated ( ) ) , actionCollection ( ) , " go_next_untrans " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextUntranslated ( ) ) , actionCollection ( ) , " go_next_untrans " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Prev&ious Untranslated " ) , " prevuntranslated " , ALT + Key_Prior ,
action = new TDE Action( i18n ( " Prev&ious Untranslated " ) , " prevuntranslated " , ALT + Key_Prior ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousUntranslated ( ) ) , actionCollection ( ) , " go_prev_untrans " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousUntranslated ( ) ) , actionCollection ( ) , " go_prev_untrans " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Ne&xt Fuzzy " ) , " nextfuzzy " , CTRL + Key_Next ,
action = new TDE Action( i18n ( " Ne&xt Fuzzy " ) , " nextfuzzy " , CTRL + Key_Next ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextFuzzy ( ) ) , actionCollection ( ) , " go_next_fuzzy " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextFuzzy ( ) ) , actionCollection ( ) , " go_next_fuzzy " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Pre&vious Fuzzy " ) , " prevfuzzy " , CTRL + Key_Prior ,
action = new TDE Action( i18n ( " Pre&vious Fuzzy " ) , " prevfuzzy " , CTRL + Key_Prior ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousFuzzy ( ) ) , actionCollection ( ) , " go_prev_fuzzy " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousFuzzy ( ) ) , actionCollection ( ) , " go_prev_fuzzy " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " N&ext Fuzzy or Untranslated " ) , " nextfuzzyuntrans " , CTRL + SHIFT + Key_Next ,
action = new TDE Action( i18n ( " N&ext Fuzzy or Untranslated " ) , " nextfuzzyuntrans " , CTRL + SHIFT + Key_Next ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextFuzzyOrUntranslated ( ) ) , actionCollection ( ) , " go_next_fuzzyUntr " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextFuzzyOrUntranslated ( ) ) , actionCollection ( ) , " go_next_fuzzyUntr " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " P&revious Fuzzy or Untranslated " ) , " prevfuzzyuntrans " , CTRL + SHIFT + Key_Prior ,
action = new TDE Action( i18n ( " P&revious Fuzzy or Untranslated " ) , " prevfuzzyuntrans " , CTRL + SHIFT + Key_Prior ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousFuzzyOrUntranslated ( ) ) , actionCollection ( ) , " go_prev_fuzzyUntr " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousFuzzyOrUntranslated ( ) ) , actionCollection ( ) , " go_prev_fuzzyUntr " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Next Err&or " ) , " nexterror " , ALT + SHIFT + Key_Next ,
action = new TDE Action( i18n ( " Next Err&or " ) , " nexterror " , ALT + SHIFT + Key_Next ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextError ( ) ) , actionCollection ( ) , " go_next_error " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextError ( ) ) , actionCollection ( ) , " go_next_error " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Previo&us Error " ) , " preverror " , ALT + SHIFT + Key_Prior ,
action = new TDE Action( i18n ( " Previo&us Error " ) , " preverror " , ALT + SHIFT + Key_Prior ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousError ( ) ) , actionCollection ( ) , " go_prev_error " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousError ( ) ) , actionCollection ( ) , " go_prev_error " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Next Te&mplate Only " ) , " nexttemplate " , CTRL + Key_Down ,
action = new TDE Action( i18n ( " Next Te&mplate Only " ) , " nexttemplate " , CTRL + Key_Down ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextTemplate ( ) ) , actionCollection ( ) , " go_next_template " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextTemplate ( ) ) , actionCollection ( ) , " go_next_template " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Previous Temp&late Only " ) , " prevtemplate " , CTRL + Key_Up ,
action = new TDE Action( i18n ( " Previous Temp&late Only " ) , " prevtemplate " , CTRL + Key_Up ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousTemplate ( ) ) , actionCollection ( ) , " go_prev_template " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousTemplate ( ) ) , actionCollection ( ) , " go_prev_template " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Next Tran&slation Exists " ) , " nextpo " , ALT + Key_Down ,
action = new TDE Action( i18n ( " Next Tran&slation Exists " ) , " nextpo " , ALT + Key_Down ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextPo ( ) ) , actionCollection ( ) , " go_next_po " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextPo ( ) ) , actionCollection ( ) , " go_next_po " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Previous Transl&ation Exists " ) , " prevpo " , ALT + Key_Up ,
action = new TDE Action( i18n ( " Previous Transl&ation Exists " ) , " prevpo " , ALT + Key_Up ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousPo ( ) ) , actionCollection ( ) , " go_prev_po " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousPo ( ) ) , actionCollection ( ) , " go_prev_po " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Previous Marke&d " ) , " prevmarked " , SHIFT + Key_Up ,
action = new TDE Action( i18n ( " Previous Marke&d " ) , " prevmarked " , SHIFT + Key_Up ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousMarked ( ) ) , actionCollection ( ) , " go_prev_marked " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoPreviousMarked ( ) ) , actionCollection ( ) , " go_prev_marked " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Next &Marked " ) , " nextmarked " , SHIFT + Key_Down ,
action = new TDE Action( i18n ( " Next &Marked " ) , " nextmarked " , SHIFT + Key_Down ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextMarked ( ) ) , actionCollection ( ) , " go_next_marked " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( gotoNextMarked ( ) ) , actionCollection ( ) , " go_next_marked " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
// project menu
// project menu
// the project menu
// the project menu
action = new K Action( i18n ( " &New... " ) , " filenew "
action = new TDE Action( i18n ( " &New... " ) , " filenew "
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectNew ( ) ) , actionCollection ( )
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectNew ( ) ) , actionCollection ( )
, " project_new " ) ;
, " project_new " ) ;
action = new K Action( i18n ( " &Open... " ) , " fileopen "
action = new TDE Action( i18n ( " &Open... " ) , " fileopen "
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectOpen ( ) ) , actionCollection ( )
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectOpen ( ) ) , actionCollection ( )
, " project_open " ) ;
, " project_open " ) ;
action = new K Action( i18n ( " C&lose " ) , " fileclose "
action = new TDE Action( i18n ( " C&lose " ) , " fileclose "
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectClose ( ) ) , actionCollection ( )
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectClose ( ) ) , actionCollection ( )
, " project_close " ) ;
, " project_close " ) ;
action - > setEnabled ( _project - > filename ( ) ! = KBabel : : ProjectManager : : defaultProjectName ( ) ) ;
action - > setEnabled ( _project - > filename ( ) ! = KBabel : : ProjectManager : : defaultProjectName ( ) ) ;
action = new K Action( i18n ( " &Configure... " ) , " configure "
action = new TDE Action( i18n ( " &Configure... " ) , " configure "
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectConfigure ( ) ) , actionCollection ( )
, TQT_TQOBJECT ( this ) , TQT_SLOT ( projectConfigure ( ) ) , actionCollection ( )
, " project_settings " ) ;
, " project_settings " ) ;
// tools menu
// tools menu
action = new K Action( i18n ( " &Statistics " ) , " statistics " , CTRL + Key_S ,
action = new TDE Action( i18n ( " &Statistics " ) , " statistics " , CTRL + Key_S ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( statistics ( ) ) , actionCollection ( ) , " statistics " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( statistics ( ) ) , actionCollection ( ) , " statistics " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " S&tatistics in Marked " ) , " statistics " , CTRL + ALT + Key_S ,
action = new TDE Action( i18n ( " S&tatistics in Marked " ) , " statistics " , CTRL + ALT + Key_S ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( markedStatistics ( ) ) , actionCollection ( ) , " statistics_marked " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( markedStatistics ( ) ) , actionCollection ( ) , " statistics_marked " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Check S&yntax " ) , " syntax " , CTRL + Key_Y ,
action = new TDE Action( i18n ( " Check S&yntax " ) , " syntax " , CTRL + Key_Y ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( checkSyntax ( ) ) , actionCollection ( ) , " syntax " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( checkSyntax ( ) ) , actionCollection ( ) , " syntax " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " S&pell Check " ) , " spellcheck " , CTRL + Key_I ,
action = new TDE Action( i18n ( " S&pell Check " ) , " spellcheck " , CTRL + Key_I ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( spellcheck ( ) ) , actionCollection ( ) , " spellcheck " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( spellcheck ( ) ) , actionCollection ( ) , " spellcheck " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Spell Check in &Marked " ) , " spellcheck " , CTRL + ALT + Key_I ,
action = new TDE Action( i18n ( " Spell Check in &Marked " ) , " spellcheck " , CTRL + ALT + Key_I ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( markedSpellcheck ( ) ) , actionCollection ( ) , " spellcheck_marked " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( markedSpellcheck ( ) ) , actionCollection ( ) , " spellcheck_marked " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " &Rough Translation " ) , CTRL + Key_T ,
action = new TDE Action( i18n ( " &Rough Translation " ) , CTRL + Key_T ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( roughTranslation ( ) ) , actionCollection ( ) , " rough_translation " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( roughTranslation ( ) ) , actionCollection ( ) , " rough_translation " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Rough Translation in M&arked " ) , CTRL + ALT + Key_T ,
action = new TDE Action( i18n ( " Rough Translation in M&arked " ) , CTRL + ALT + Key_T ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( markedRoughTranslation ( ) ) , actionCollection ( ) , " rough_translation_marked " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( markedRoughTranslation ( ) ) , actionCollection ( ) , " rough_translation_marked " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Mai&l " ) , " mail_send " , CTRL + Key_A ,
action = new TDE Action( i18n ( " Mai&l " ) , " mail_send " , CTRL + Key_A ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( mailFiles ( ) ) , actionCollection ( ) , " mail_file " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( mailFiles ( ) ) , actionCollection ( ) , " mail_file " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " Mail Mar&ked " ) , " mail_send " , CTRL + ALT + Key_A ,
action = new TDE Action( i18n ( " Mail Mar&ked " ) , " mail_send " , CTRL + ALT + Key_A ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( mailMarkedFiles ( ) ) , actionCollection ( ) , " mail_file_marked " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( mailMarkedFiles ( ) ) , actionCollection ( ) , " mail_file_marked " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
action = new K Action( i18n ( " &Pack " ) , " tar " , CTRL + Key_B ,
action = new TDE Action( i18n ( " &Pack " ) , " tar " , CTRL + Key_B ,
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( packageFiles ( ) ) , actionCollection ( ) , " package_file " ) ;
TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( packageFiles ( ) ) , actionCollection ( ) , " package_file " ) ;
action = new K Action( i18n ( " Pack &Marked " ) , " tar " , CTRL + ALT + Key_B , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( packageMarkedFiles ( ) ) , actionCollection ( ) , " package_file_marked " ) ;
action = new TDE Action( i18n ( " Pack &Marked " ) , " tar " , CTRL + ALT + Key_B , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( packageMarkedFiles ( ) ) , actionCollection ( ) , " package_file_marked " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
actionMap [ " statistics_marked " ] = NEEDS_DIR | NEEDS_MARK ;
actionMap [ " statistics_marked " ] = NEEDS_DIR | NEEDS_MARK ;
@ -392,14 +392,14 @@ void CatalogManager::setupActions()
// dynamic tools
// dynamic tools
TQValueList < KDataToolInfo > tools = ToolAction : : validationTools ( ) ;
TQValueList < KDataToolInfo > tools = ToolAction : : validationTools ( ) ;
TQPtrList < K Action> actions = ToolAction : : dataToolActionList (
TQPtrList < TDE Action> actions = ToolAction : : dataToolActionList (
tools , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( validateUsingTool ( const KDataToolInfo & , const TQString & ) )
tools , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( validateUsingTool ( const KDataToolInfo & , const TQString & ) )
, " validate " , false , actionCollection ( ) ) ;
, " validate " , false , actionCollection ( ) ) ;
KActionMenu* m_menu = new K ActionMenu( i18n ( " &Validation " ) , actionCollection ( ) ,
TDEActionMenu* m_menu = new TDE ActionMenu( i18n ( " &Validation " ) , actionCollection ( ) ,
" dynamic_validation " ) ;
" dynamic_validation " ) ;
K Action* ac ;
TDE Action* ac ;
for ( ac = actions . first ( ) ; ac ; ac = actions . next ( ) )
for ( ac = actions . first ( ) ; ac ; ac = actions . next ( ) )
{
{
@ -409,7 +409,7 @@ void CatalogManager::setupActions()
actions = ToolAction : : dataToolActionList (
actions = ToolAction : : dataToolActionList (
tools , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( validateMarkedUsingTool ( const KDataToolInfo & , const TQString & ) )
tools , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( validateMarkedUsingTool ( const KDataToolInfo & , const TQString & ) )
, " validate " , false , actionCollection ( ) , " marked_ " ) ;
, " validate " , false , actionCollection ( ) , " marked_ " ) ;
m_menu = new K ActionMenu( i18n ( " V&alidation Marked " ) , actionCollection ( ) ,
m_menu = new TDE ActionMenu( i18n ( " V&alidation Marked " ) , actionCollection ( ) ,
" dynamic_validation_marked " ) ;
" dynamic_validation_marked " ) ;
for ( ac = actions . first ( ) ; ac ; ac = actions . next ( ) )
for ( ac = actions . first ( ) ; ac ; ac = actions . next ( ) )
@ -422,19 +422,19 @@ void CatalogManager::setupActions()
// CVS submenu
// CVS submenu
// Actions for PO files
// Actions for PO files
( void ) new K Action( i18n ( " Update " ) , " down " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update " ) , " down " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsUpdate ( ) ) , actionCollection ( ) , " cvs_update " ) ;
TQT_SLOT ( cvsUpdate ( ) ) , actionCollection ( ) , " cvs_update " ) ;
( void ) new K Action( i18n ( " Update Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsUpdateMarked ( ) ) , actionCollection ( ) , " cvs_update_marked " ) ;
TQT_SLOT ( cvsUpdateMarked ( ) ) , actionCollection ( ) , " cvs_update_marked " ) ;
( void ) new K Action( i18n ( " Commit " ) , " up " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit " ) , " up " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsCommit ( ) ) , actionCollection ( ) , " cvs_commit " ) ;
TQT_SLOT ( cvsCommit ( ) ) , actionCollection ( ) , " cvs_commit " ) ;
( void ) new K Action( i18n ( " Commit Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsCommitMarked ( ) ) , actionCollection ( ) , " cvs_commit_marked " ) ;
TQT_SLOT ( cvsCommitMarked ( ) ) , actionCollection ( ) , " cvs_commit_marked " ) ;
( void ) new K Action( i18n ( " Status " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Status " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsStatus ( ) ) , actionCollection ( ) , " cvs_status " ) ;
TQT_SLOT ( cvsStatus ( ) ) , actionCollection ( ) , " cvs_status " ) ;
( void ) new K Action( i18n ( " Status for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Status for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsStatusMarked ( ) ) , actionCollection ( ) , " cvs_status_marked " ) ;
TQT_SLOT ( cvsStatusMarked ( ) ) , actionCollection ( ) , " cvs_status_marked " ) ;
( void ) new K Action( i18n ( " Show Diff " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Show Diff " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsDiff ( ) ) , actionCollection ( ) , " cvs_diff " ) ;
TQT_SLOT ( cvsDiff ( ) ) , actionCollection ( ) , " cvs_diff " ) ;
// CVS
// CVS
@ -448,27 +448,27 @@ void CatalogManager::setupActions()
// SVN submenu
// SVN submenu
// Actions for PO files
// Actions for PO files
( void ) new K Action( i18n ( " Update " ) , " down " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update " ) , " down " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnUpdate ( ) ) , actionCollection ( ) , " svn_update " ) ;
TQT_SLOT ( svnUpdate ( ) ) , actionCollection ( ) , " svn_update " ) ;
( void ) new K Action( i18n ( " Update Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnUpdateMarked ( ) ) , actionCollection ( ) , " svn_update_marked " ) ;
TQT_SLOT ( svnUpdateMarked ( ) ) , actionCollection ( ) , " svn_update_marked " ) ;
( void ) new K Action( i18n ( " Commit " ) , " up " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit " ) , " up " , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnCommit ( ) ) , actionCollection ( ) , " svn_commit " ) ;
TQT_SLOT ( svnCommit ( ) ) , actionCollection ( ) , " svn_commit " ) ;
( void ) new K Action( i18n ( " Commit Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnCommitMarked ( ) ) , actionCollection ( ) , " svn_commit_marked " ) ;
TQT_SLOT ( svnCommitMarked ( ) ) , actionCollection ( ) , " svn_commit_marked " ) ;
( void ) new K Action( i18n ( " Status (Local) " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Status (Local) " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnStatusLocal ( ) ) , actionCollection ( ) , " svn_status_local " ) ;
TQT_SLOT ( svnStatusLocal ( ) ) , actionCollection ( ) , " svn_status_local " ) ;
( void ) new K Action( i18n ( " Status (Local) for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Status (Local) for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnStatusLocalMarked ( ) ) , actionCollection ( ) , " svn_status_local_marked " ) ;
TQT_SLOT ( svnStatusLocalMarked ( ) ) , actionCollection ( ) , " svn_status_local_marked " ) ;
( void ) new K Action( i18n ( " Status (Remote) " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Status (Remote) " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnStatusRemote ( ) ) , actionCollection ( ) , " svn_status_remote " ) ;
TQT_SLOT ( svnStatusRemote ( ) ) , actionCollection ( ) , " svn_status_remote " ) ;
( void ) new K Action( i18n ( " Status (Remote) for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Status (Remote) for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnStatusRemoteMarked ( ) ) , actionCollection ( ) , " svn_status_remote_marked " ) ;
TQT_SLOT ( svnStatusRemoteMarked ( ) ) , actionCollection ( ) , " svn_status_remote_marked " ) ;
( void ) new K Action( i18n ( " Show Diff " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Show Diff " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnDiff ( ) ) , actionCollection ( ) , " svn_diff " ) ;
TQT_SLOT ( svnDiff ( ) ) , actionCollection ( ) , " svn_diff " ) ;
( void ) new K Action( i18n ( " Show Information " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Show Information " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnInfo ( ) ) , actionCollection ( ) , " svn_info " ) ;
TQT_SLOT ( svnInfo ( ) ) , actionCollection ( ) , " svn_info " ) ;
( void ) new K Action( i18n ( " Show Information for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Show Information for Marked " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnInfoMarked ( ) ) , actionCollection ( ) , " svn_info_marked " ) ;
TQT_SLOT ( svnInfoMarked ( ) ) , actionCollection ( ) , " svn_info_marked " ) ;
// SVN
// SVN
@ -485,13 +485,13 @@ void CatalogManager::setupActions()
actionMap [ " svn_info_marked " ] = NEEDS_PO | NEEDS_PO_SVN | NEEDS_MARK ;
actionMap [ " svn_info_marked " ] = NEEDS_PO | NEEDS_PO_SVN | NEEDS_MARK ;
// CVS Actions for POT files
// CVS Actions for POT files
( void ) new K Action( i18n ( " Update Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsUpdateTemplate ( ) ) , actionCollection ( ) , " cvs_update_template " ) ;
TQT_SLOT ( cvsUpdateTemplate ( ) ) , actionCollection ( ) , " cvs_update_template " ) ;
( void ) new K Action( i18n ( " Update Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsUpdateMarkedTemplate ( ) ) , actionCollection ( ) , " cvs_update_marked_template " ) ;
TQT_SLOT ( cvsUpdateMarkedTemplate ( ) ) , actionCollection ( ) , " cvs_update_marked_template " ) ;
( void ) new K Action( i18n ( " Commit Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsCommitTemplate ( ) ) , actionCollection ( ) , " cvs_commit_template " ) ;
TQT_SLOT ( cvsCommitTemplate ( ) ) , actionCollection ( ) , " cvs_commit_template " ) ;
( void ) new K Action( i18n ( " Commit Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( cvsCommitMarkedTemplate ( ) ) , actionCollection ( ) , " cvs_commit_marked_template " ) ;
TQT_SLOT ( cvsCommitMarkedTemplate ( ) ) , actionCollection ( ) , " cvs_commit_marked_template " ) ;
actionMap [ " cvs_update_template " ] = NEEDS_POT | NEEDS_POT_CVS ;
actionMap [ " cvs_update_template " ] = NEEDS_POT | NEEDS_POT_CVS ;
@ -500,13 +500,13 @@ void CatalogManager::setupActions()
actionMap [ " cvs_commit_marked_template " ] = NEEDS_POT | NEEDS_POT_CVS | NEEDS_MARK ;
actionMap [ " cvs_commit_marked_template " ] = NEEDS_POT | NEEDS_POT_CVS | NEEDS_MARK ;
// SVN Actions for POT files
// SVN Actions for POT files
( void ) new K Action( i18n ( " Update Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnUpdateTemplate ( ) ) , actionCollection ( ) , " svn_update_template " ) ;
TQT_SLOT ( svnUpdateTemplate ( ) ) , actionCollection ( ) , " svn_update_template " ) ;
( void ) new K Action( i18n ( " Update Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Update Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnUpdateMarkedTemplate ( ) ) , actionCollection ( ) , " svn_update_marked_template " ) ;
TQT_SLOT ( svnUpdateMarkedTemplate ( ) ) , actionCollection ( ) , " svn_update_marked_template " ) ;
( void ) new K Action( i18n ( " Commit Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnCommitTemplate ( ) ) , actionCollection ( ) , " svn_commit_template " ) ;
TQT_SLOT ( svnCommitTemplate ( ) ) , actionCollection ( ) , " svn_commit_template " ) ;
( void ) new K Action( i18n ( " Commit Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
( void ) new TDE Action( i18n ( " Commit Marked Templates " ) , 0 , TQT_TQOBJECT ( _catalogManager ) ,
TQT_SLOT ( svnCommitMarkedTemplate ( ) ) , actionCollection ( ) , " svn_commit_marked_template " ) ;
TQT_SLOT ( svnCommitMarkedTemplate ( ) ) , actionCollection ( ) , " svn_commit_marked_template " ) ;
actionMap [ " svn_update_template " ] = NEEDS_POT | NEEDS_POT_SVN ;
actionMap [ " svn_update_template " ] = NEEDS_POT | NEEDS_POT_SVN ;
@ -522,15 +522,15 @@ void CatalogManager::setupActions()
setStandardToolBarMenuEnabled ( true ) ;
setStandardToolBarMenuEnabled ( true ) ;
// commands menus
// commands menus
KActionMenu* actionMenu = new K ActionMenu( i18n ( " Commands " ) , 0 ,
TDEActionMenu* actionMenu = new TDE ActionMenu( i18n ( " Commands " ) , 0 ,
actionCollection ( ) , " dir_commands " ) ;
actionCollection ( ) , " dir_commands " ) ;
_catalogManager - > setDirCommandsMenu ( actionMenu - > popupMenu ( ) ) ;
_catalogManager - > setDirCommandsMenu ( actionMenu - > popupMenu ( ) ) ;
actionMenu = new K ActionMenu( i18n ( " Commands " ) , 0 ,
actionMenu = new TDE ActionMenu( i18n ( " Commands " ) , 0 ,
actionCollection ( ) , " file_commands " ) ;
actionCollection ( ) , " file_commands " ) ;
_catalogManager - > setFileCommandsMenu ( actionMenu - > popupMenu ( ) ) ;
_catalogManager - > setFileCommandsMenu ( actionMenu - > popupMenu ( ) ) ;
action = new K Action( i18n ( " &Delete " ) , Key_Delete , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( slotDeleteFile ( ) ) , actionCollection ( ) , " delete " ) ;
action = new TDE Action( i18n ( " &Delete " ) , Key_Delete , TQT_TQOBJECT ( _catalogManager ) , TQT_SLOT ( slotDeleteFile ( ) ) , actionCollection ( ) , " delete " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
# if KDE_IS_VERSION( 3, 2, 90 )
# if KDE_IS_VERSION( 3, 2, 90 )
@ -572,7 +572,7 @@ void CatalogManager::selectedChanged(uint actionValue)
{
{
TQMap < TQString , uint > : : Iterator it ;
TQMap < TQString , uint > : : Iterator it ;
for ( it = actionMap . begin ( ) ; it ! = actionMap . end ( ) ; + + it ) {
for ( it = actionMap . begin ( ) ; it ! = actionMap . end ( ) ; + + it ) {
K Action * action = actionCollection ( ) - > action ( it . key ( ) . latin1 ( ) ) ;
TDE Action * action = actionCollection ( ) - > action ( it . key ( ) . latin1 ( ) ) ;
if ( action ) action - > setEnabled ( ( actionValue & it . data ( ) ) = = it . data ( ) ) ;
if ( action ) action - > setEnabled ( ( actionValue & it . data ( ) ) = = it . data ( ) ) ;
}
}
}
}
@ -855,7 +855,7 @@ bool CatalogManager::startKBabel()
TQString url = " " ;
TQString url = " " ;
if ( kapp - > startServiceByDesktopName ( app , url , & result , & service ) )
if ( kapp - > startServiceByDesktopName ( app , url , & result , & service ) )
{
{
KMessageBox : : error ( this , i18n ( " Unable to use K Launcher to start KBabel.\n "
KMessageBox : : error ( this , i18n ( " Unable to use TDE Launcher to start KBabel.\n "
" You should check the installation of TDE. \n "
" You should check the installation of TDE. \n "
" Please start KBabel manually. " ) ) ;
" Please start KBabel manually. " ) ) ;
return false ;
return false ;
@ -940,7 +940,7 @@ void CatalogManager::find()
prepareStatusProgressBar ( i18n ( " Searching " ) , 1 ) ; // just show the progress bar
prepareStatusProgressBar ( i18n ( " Searching " ) , 1 ) ; // just show the progress bar
// enable stop action to stop searching
// enable stop action to stop searching
KAction * action = ( K Action* ) actionCollection ( ) - > action ( " stop_search " ) ;
TDEAction * action = ( TDE Action* ) actionCollection ( ) - > action ( " stop_search " ) ;
action - > setEnabled ( true ) ;
action - > setEnabled ( true ) ;
_findOptions = _findDialog - > findOpts ( ) ;
_findOptions = _findDialog - > findOpts ( ) ;
@ -1024,7 +1024,7 @@ void CatalogManager::replace()
prepareStatusProgressBar ( i18n ( " Searching " ) , 1 ) ; // just show the progress bar
prepareStatusProgressBar ( i18n ( " Searching " ) , 1 ) ; // just show the progress bar
// enable stop action to stop searching
// enable stop action to stop searching
KAction * action = ( K Action* ) actionCollection ( ) - > action ( " stop_search " ) ;
TDEAction * action = ( TDE Action* ) actionCollection ( ) - > action ( " stop_search " ) ;
action - > setEnabled ( true ) ;
action - > setEnabled ( true ) ;
ReplaceOptions options = _replaceDialog - > replaceOpts ( ) ;
ReplaceOptions options = _replaceDialog - > replaceOpts ( ) ;
@ -1131,7 +1131,7 @@ void CatalogManager::stopSearching()
// fake that we are over (fake, because findNextFile can still be running for the last file
// fake that we are over (fake, because findNextFile can still be running for the last file
clearStatusProgressBar ( ) ; // clear the status bar, we are finished
clearStatusProgressBar ( ) ; // clear the status bar, we are finished
// disable stop action as well
// disable stop action as well
KAction * action = ( K Action* ) actionCollection ( ) - > action ( " stop_search " ) ;
TDEAction * action = ( TDE Action* ) actionCollection ( ) - > action ( " stop_search " ) ;
action - > setEnabled ( false ) ;
action - > setEnabled ( false ) ;
}
}
@ -1177,7 +1177,7 @@ void CatalogManager::restoreView()
{
{
applyMainWindowSettings ( TDEGlobal : : config ( ) , " View " ) ;
applyMainWindowSettings ( TDEGlobal : : config ( ) , " View " ) ;
KToggleAction * toggle = ( K ToggleAction* ) actionCollection ( ) - >
TDEToggleAction * toggle = ( TDE ToggleAction* ) actionCollection ( ) - >
action ( KStdAction : : stdName ( KStdAction : : ShowStatusbar ) ) ;
action ( KStdAction : : stdName ( KStdAction : : ShowStatusbar ) ) ;
toggle - > setChecked ( ! statusBar ( ) - > isHidden ( ) ) ;
toggle - > setChecked ( ! statusBar ( ) - > isHidden ( ) ) ;
}
}
@ -1254,7 +1254,7 @@ void CatalogManager::changeProjectActions(const TQString& project)
{
{
bool def = ( project = = KBabel : : ProjectManager : : defaultProjectName ( ) ) ;
bool def = ( project = = KBabel : : ProjectManager : : defaultProjectName ( ) ) ;
KAction* saveAction = ( K Action* ) actionCollection ( ) - > action ( " project_close " ) ;
TDEAction* saveAction = ( TDE Action* ) actionCollection ( ) - > action ( " project_close " ) ;
saveAction - > setEnabled ( ! def ) ;
saveAction - > setEnabled ( ! def ) ;
}
}
@ -1283,88 +1283,88 @@ void CatalogManager::disableActions()
void CatalogManager : : enableActions ( bool enable )
void CatalogManager : : enableActions ( bool enable )
{
{
K Action* action ;
TDE Action* action ;
// the file menu
// the file menu
action = ( K Action* ) actionCollection ( ) - > action ( " open " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " open " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " open_new_window " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " open_new_window " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " find_in_files " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " find_in_files " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " replace_in_files " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " replace_in_files " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " reload " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " reload " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " toggle_marking " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " toggle_marking " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " toggle_all_marking " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " toggle_all_marking " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " mark_modified_files " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " mark_modified_files " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " load_marking " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " load_marking " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " save_marking " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " save_marking " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_next_untrans " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_next_untrans " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_prev_untrans " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_prev_untrans " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_next_fuzzy " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_next_fuzzy " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_prev_fuzzy " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_prev_fuzzy " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_next_fuzzyUntr " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_next_fuzzyUntr " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_prev_fuzzyUntr " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_prev_fuzzyUntr " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_next_error " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_next_error " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_prev_error " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_prev_error " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_next_template " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_next_template " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_prev_template " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_prev_template " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_next_po " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_next_po " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_prev_po " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_prev_po " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_next_marked " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_next_marked " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " go_prev_marked " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " go_prev_marked " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " statistics " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " statistics " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " package_file " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " package_file " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
action = ( K Action* ) actionCollection ( ) - > action ( " rough_translation " ) ;
action = ( TDE Action* ) actionCollection ( ) - > action ( " rough_translation " ) ;
action - > setEnabled ( enable ) ;
action - > setEnabled ( enable ) ;
}
}