@ -218,7 +218,7 @@ QuantaApp::QuantaApp(int mdiMode) : DCOPObject("WindowManagerIf"), KMdiMainFrm(
connect ( idleTimer , TQT_SIGNAL ( timeout ( ) ) , TQT_SLOT ( slotIdleTimerExpired ( ) ) ) ;
m_idleTimerEnabled = true ;
qConfig . globalDataDir = K Global: : dirs ( ) - > findResourceDir ( " data " , resourceDir + " toolbar/quantalogo.png " ) ;
qConfig . globalDataDir = TDE Global: : dirs ( ) - > findResourceDir ( " data " , resourceDir + " toolbar/quantalogo.png " ) ;
if ( qConfig . globalDataDir . isEmpty ( ) )
{
quantaStarted = false ;
@ -316,7 +316,7 @@ QuantaApp::~QuantaApp()
}
m_toolbarList . clear ( ) ;
TQStringList tmpDirs = K Global: : dirs ( ) - > resourceDirs ( " tmp " ) ;
TQStringList tmpDirs = TDE Global: : dirs ( ) - > resourceDirs ( " tmp " ) ;
tmpDir = tmpDirs [ 0 ] ;
for ( uint i = 0 ; i < tmpDirs . count ( ) ; i + + )
{
@ -511,7 +511,7 @@ bool QuantaApp::slotFileSaveAs(QuantaView *viewToSave)
" all/allfiles text/html text/xml application/x-php text/plain " , this , i18n ( " Save File " ) ) ;
KURL saveUrl = data . URLs [ 0 ] ;
bool found ;
TQString encoding = K Global: : charsets ( ) - > codecForName ( data . encoding , found ) - > name ( ) ;
TQString encoding = TDE Global: : charsets ( ) - > codecForName ( data . encoding , found ) - > name ( ) ;
KTextEditor : : EncodingInterface * encodingIf = dynamic_cast < KTextEditor : : EncodingInterface * > ( w - > doc ( ) ) ;
if ( encodingIf & & encodingIf - > encoding ( ) ! = encoding )
encodingIf - > setEncoding ( encoding ) ;
@ -1042,7 +1042,7 @@ void QuantaApp::slotConfigureToolbars(const TQString& defaultToolbar)
TQDomNodeList nodeList ;
ToolbarEntry * p_toolbar = 0L ;
saveMainWindowSettings ( K Global: : config ( ) , autoSaveGroup ( ) ) ;
saveMainWindowSettings ( TDE Global: : config ( ) , autoSaveGroup ( ) ) ;
KEditToolbar * dlg ;
if ( ! defaultToolbar . isEmpty ( ) )
dlg = new KEditToolbar ( defaultToolbar , factory ( ) , this ) ;
@ -1129,7 +1129,7 @@ void QuantaApp::slotOptionsConfigureToolbars()
void QuantaApp : : slotNewToolbarConfig ( )
{
applyMainWindowSettings ( K Global: : config ( ) , autoSaveGroup ( ) ) ;
applyMainWindowSettings ( TDE Global: : config ( ) , autoSaveGroup ( ) ) ;
ToolbarTabWidget : : ref ( ) - > setCurrentPage ( currentPageIndex ) ;
}
@ -1191,7 +1191,7 @@ void QuantaApp::slotOptions()
fileMasks - > sbAutoSave - > setValue ( m_config - > readNumEntry ( " Autosave interval " ) ) ;
//else default value 15
TQStringList availableEncodingNames ( K Global: : charsets ( ) - > availableEncodingNames ( ) ) ;
TQStringList availableEncodingNames ( TDE Global: : charsets ( ) - > availableEncodingNames ( ) ) ;
fileMasks - > encodingCombo - > insertStringList ( availableEncodingNames ) ;
TQStringList : : ConstIterator iter ;
int iIndex = - 1 ;
@ -1800,7 +1800,7 @@ TQWidget* QuantaApp::createContainer( TQWidget *parent, int index, const TQDomEl
//kdDebug(24000) << "tb->iconSize() " << tb->iconSize() << endl;
if ( toolbarTab - > iconText ( ) = = KToolBar : : IconTextBottom )
{
tb - > setGeometry ( 0 , 0 , toolbarTab - > width ( ) , tb - > iconSize ( ) + TQFontMetrics ( K GlobalSettings: : toolBarFont ( ) ) . height ( ) + 10 ) ;
tb - > setGeometry ( 0 , 0 , toolbarTab - > width ( ) , tb - > iconSize ( ) + TQFontMetrics ( TDE GlobalSettings: : toolBarFont ( ) ) . height ( ) + 10 ) ;
toolbarTab - > setFixedHeight ( toolbarTab - > tabHeight ( ) + tb - > height ( ) + 3 ) ;
} else
{
@ -2884,7 +2884,7 @@ bool QuantaApp::removeToolbars()
}
}
TQFile f ( K Global: : instance ( ) - > dirs ( ) - > saveLocation ( " data " ) + resourceDir + " actions.rc " ) ;
TQFile f ( TDE Global: : instance ( ) - > dirs ( ) - > saveLocation ( " data " ) + resourceDir + " actions.rc " ) ;
if ( f . open ( IO_ReadWrite | IO_Truncate ) )
{
if ( ! m_actions - > firstChild ( ) . firstChild ( ) . isNull ( ) )
@ -3935,7 +3935,7 @@ void QuantaApp::slotAutosaveTimer()
}
/** Get script output */
void QuantaApp : : slotGetScriptOutput ( K Process* , char * buf , int buflen )
void QuantaApp : : slotGetScriptOutput ( TDE Process* , char * buf , int buflen )
{
TQCString tmp ( buf , buflen + 1 ) ;
m_scriptOutput = TQString ( ) ;
@ -3943,14 +3943,14 @@ void QuantaApp::slotGetScriptOutput(KProcess* ,char* buf,int buflen)
}
/** Get script error*/
void QuantaApp : : slotGetScriptError ( K Process* , char * buf , int buflen )
void QuantaApp : : slotGetScriptError ( TDE Process* , char * buf , int buflen )
{
//TODO: Implement some error handling?
Q_UNUSED ( buf ) ;
Q_UNUSED ( buflen ) ;
}
/** Notify when process exits*/
void QuantaApp : : slotProcessExited ( K Process* process )
void QuantaApp : : slotProcessExited ( TDE Process* process )
{
slotProcessTimeout ( ) ;
delete process ;
@ -4767,10 +4767,10 @@ void QuantaApp::slotViewInKFM()
}
if ( ! w - > isUntitled ( ) )
{
KProcess * show = new K Process( TQT_TQOBJECT ( this ) ) ;
TDEProcess * show = new TDE Process( TQT_TQOBJECT ( this ) ) ;
KURL url = Project : : ref ( ) - > urlWithPrefix ( w - > url ( ) ) ;
* show < < " kfmclient " < < " newTab " < < url . url ( ) ;
show - > start ( K Process: : DontCare ) ;
show - > start ( TDE Process: : DontCare ) ;
}
}
@ -4801,7 +4801,7 @@ void QuantaApp::slotViewInLynx()
}
if ( ! w - > isUntitled ( ) )
{
KProcess * show = new K Process( TQT_TQOBJECT ( this ) ) ;
TDEProcess * show = new TDE Process( TQT_TQOBJECT ( this ) ) ;
KURL url = Project : : ref ( ) - > urlWithPrefix ( w - > url ( ) ) ;
* show < < " konsole "
< < " --nohist "
@ -4811,7 +4811,7 @@ void QuantaApp::slotViewInLynx()
< < " -e "
< < " lynx "
< < url . url ( ) ;
show - > start ( K Process: : DontCare ) ;
show - > start ( TDE Process: : DontCare ) ;
}
}