@ -101,7 +101,7 @@ namespace KileTool
}
}
Manager : : Manager ( KileInfo * ki , K Config * config , KileWidget : : LogMsg * log , KileWidget : : Output * output , KParts : : PartManager * manager , TQWidgetStack * stack , KAction * stop , uint to ) :
Manager : : Manager ( KileInfo * ki , TDE Config * config , KileWidget : : LogMsg * log , KileWidget : : Output * output , KParts : : PartManager * manager , TQWidgetStack * stack , KAction * stop , uint to ) :
m_ki ( ki ) ,
m_config ( config ) ,
m_log ( log ) ,
@ -301,7 +301,7 @@ namespace KileTool
KileProject * project = m_ki - > docManager ( ) - > activeProject ( ) ;
if ( project )
{
TQString cfg = configName ( name , dynamic_cast < K Config* > ( project - > config ( ) ) ) ;
TQString cfg = configName ( name , dynamic_cast < TDE Config* > ( project - > config ( ) ) ) ;
if ( cfg . length ( ) > 0 ) return groupFor ( name , cfg ) ;
}
}
@ -327,7 +327,7 @@ namespace KileTool
KileProject * project = m_ki - > docManager ( ) - > activeProject ( ) ;
if ( useproject & & project )
{
KConfig * prjcfg = dynamic_cast < K Config* > ( project - > config ( ) ) ;
TDEConfig * prjcfg = dynamic_cast < TDE Config* > ( project - > config ( ) ) ;
if ( prjcfg )
{
TQString grp = groupFor ( name , prjcfg ) ;
@ -384,7 +384,7 @@ namespace KileTool
emit ( requestGUIState ( state ) ) ;
}
TQStringList toolList ( K Config * config , bool menuOnly )
TQStringList toolList ( TDE Config * config , bool menuOnly )
{
KILE_DEBUG ( ) < < " ==KileTool::toolList()================== " < < endl ;
@ -409,20 +409,20 @@ namespace KileTool
return tools ;
}
TQString configName ( const TQString & tool , K Config * config )
TQString configName ( const TQString & tool , TDE Config * config )
{
config - > setGroup ( " Tools " ) ;
return config - > readEntry ( tool , " " ) ;
}
void setConfigName ( const TQString & tool , const TQString & name , K Config * config )
void setConfigName ( const TQString & tool , const TQString & name , TDE Config * config )
{
KILE_DEBUG ( ) < < " ==KileTool::Manager::setConfigName( " < < tool < < " , " < < name < < " )=============== " < < endl ;
config - > setGroup ( " Tools " ) ;
config - > writeEntry ( tool , name ) ;
}
TQString groupFor ( const TQString & tool , K Config * config )
TQString groupFor ( const TQString & tool , TDE Config * config )
{
return groupFor ( tool , configName ( tool , config ) ) ;
}
@ -456,7 +456,7 @@ namespace KileTool
return tool ;
}
TQStringList configNames ( const TQString & tool , K Config * config )
TQStringList configNames ( const TQString & tool , TDE Config * config )
{
TQStringList groups = config - > groupList ( ) , configs ;
TQRegExp re = TQRegExp ( " Tool/ " + tool + " /(.+) " ) ;
@ -472,19 +472,19 @@ namespace KileTool
return configs ;
}
TQString menuFor ( const TQString & tool , K Config * config )
TQString menuFor ( const TQString & tool , TDE Config * config )
{
config - > setGroup ( " ToolsGUI " ) ;
return config - > readEntry ( tool , " Other,gear " ) . section ( ' , ' , 0 , 0 ) ;
}
TQString iconFor ( const TQString & tool , K Config * config )
TQString iconFor ( const TQString & tool , TDE Config * config )
{
config - > setGroup ( " ToolsGUI " ) ;
return config - > readEntry ( tool , " Other,gear " ) . section ( ' , ' , 1 , 1 ) ;
}
void setGUIOptions ( const TQString & tool , const TQString & menu , const TQString & icon , K Config * config )
void setGUIOptions ( const TQString & tool , const TQString & menu , const TQString & icon , TDE Config * config )
{
TQString entry = menu + ' , ' + icon ;