@ -297,7 +297,7 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo
// read and apply default values ///////////////////////////////////////////
resize ( 321 , 321 ) ; // Dummy.
TQSize currentSize = size ( ) ;
KConfig * config = K Global: : config ( ) ;
KConfig * config = TDE Global: : config ( ) ;
config - > setDesktopGroup ( ) ;
applyMainWindowSettings ( config ) ;
if ( currentSize ! = size ( ) )
@ -367,7 +367,7 @@ Konsole::~Konsole()
}
// Wait a bit for all childs to clean themselves up.
while ( sessions . count ( ) & & KProcessController: : theK ProcessController- > waitForProcessExit ( 1 ) )
while ( sessions . count ( ) & & TDEProcessController: : theTDE ProcessController- > waitForProcessExit ( 1 ) )
;
sessions . setAutoDelete ( true ) ;
@ -652,7 +652,7 @@ void Konsole::makeGUI()
// encoding menu, start with default checked !
selectSetEncoding = new KSelectAction ( i18n ( " &Encoding " ) , SmallIconSet ( " charset " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetEncoding ( ) ) , actions , " set_encoding " ) ;
TQStringList list = K Global: : charsets ( ) - > descriptiveEncodingNames ( ) ;
TQStringList list = TDE Global: : charsets ( ) - > descriptiveEncodingNames ( ) ;
list . prepend ( i18n ( " Default " ) ) ;
selectSetEncoding - > setItems ( list ) ;
selectSetEncoding - > setCurrentItem ( 0 ) ;
@ -703,7 +703,7 @@ void Konsole::makeGUI()
KAction * configure = KStdAction : : preferences ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotConfigure ( ) ) , actions ) ;
configure - > plug ( m_options ) ;
if ( K GlobalSettings: : insertTearOffHandle ( ) )
if ( TDE GlobalSettings: : insertTearOffHandle ( ) )
m_options - > insertTearOffHandle ( ) ;
}
@ -758,7 +758,7 @@ void Konsole::makeGUI()
}
m_rightButton - > insertSeparator ( ) ;
m_closeSession - > plug ( m_rightButton ) ;
if ( K GlobalSettings: : insertTearOffHandle ( ) )
if ( TDE GlobalSettings: : insertTearOffHandle ( ) )
m_rightButton - > insertTearOffHandle ( ) ;
}
@ -884,8 +884,8 @@ void Konsole::slotSetEncoding()
else
{
bool found ;
TQString enc = K Global: : charsets ( ) - > encodingForName ( selectSetEncoding - > currentText ( ) ) ;
qtc = K Global: : charsets ( ) - > codecForName ( enc , found ) ;
TQString enc = TDE Global: : charsets ( ) - > encodingForName ( selectSetEncoding - > currentText ( ) ) ;
qtc = TDE Global: : charsets ( ) - > codecForName ( enc , found ) ;
// BR114535 : Remove jis7 due to infinite loop.
if ( enc = = " jis7 " ) {
@ -966,7 +966,7 @@ bool Konsole::eventFilter( TQObject *o, TQEvent *ev )
{
TQMouseEvent * mev = TQT_TQMOUSEEVENT ( ev ) ;
if ( ( mev - > pos ( ) - m_newSessionButtonMousePressPos ) . manhattanLength ( )
> K GlobalSettings: : dndEventDelay ( ) )
> TDE GlobalSettings: : dndEventDelay ( ) )
{
m_newSessionButton - > openPopup ( ) ;
return true ;
@ -1167,7 +1167,7 @@ void Konsole::makeBasicGUI()
new KAction ( i18n ( " Toggle Bidi " ) , Qt : : CTRL + Qt : : ALT + Qt : : Key_B , TQT_TQOBJECT ( this ) , TQT_SLOT ( toggleBidi ( ) ) , m_shortcuts , " toggle_bidi " ) ;
// Should we load all *.desktop files now? Required for Session shortcuts.
if ( KConfigGroup ( K Global: : config ( ) , " General " ) . readBoolEntry ( " SessionShortcutsEnabled " , false ) ) {
if ( KConfigGroup ( TDE Global: : config ( ) , " General " ) . readBoolEntry ( " SessionShortcutsEnabled " , false ) ) {
b_sessionShortcutsEnabled = true ;
loadSessionCommands ( ) ;
loadScreenSessions ( ) ;
@ -1438,7 +1438,7 @@ void Konsole::slotSaveSessionsProfile()
if ( ok ) {
TQString path = locateLocal ( " data " ,
TQString : : fromLatin1 ( " konsole/profiles/ " ) + prof ,
K Global: : instance ( ) ) ;
TDE Global: : instance ( ) ) ;
if ( TQFile : : exists ( path ) )
TQFile : : remove ( path ) ;
@ -1454,7 +1454,7 @@ void Konsole::saveProperties(KConfig* config) {
uint active = 0 ;
TQString key ;
if ( config ! = K Global: : config ( ) )
if ( config ! = TDE Global: : config ( ) )
{
// called by the session manager
config - > writeEntry ( " numSes " , sessions . count ( ) ) ;
@ -1526,7 +1526,7 @@ void Konsole::saveProperties(KConfig* config) {
if ( selectSetEncoding )
{
TQString encoding = K Global: : charsets ( ) - > encodingForName ( selectSetEncoding - > currentText ( ) ) ;
TQString encoding = TDE Global: : charsets ( ) - > encodingForName ( selectSetEncoding - > currentText ( ) ) ;
config - > writeEntry ( " EncodingName " , encoding ) ;
} else { // This will not always work (ie 'winsami' saves as 'ws2')
if ( se ) config - > writeEntry ( " EncodingName " , se - > encoding ( ) ) ;
@ -1538,7 +1538,7 @@ void Konsole::saveProperties(KConfig* config) {
}
config - > writeEntry ( " class " , name ( ) ) ;
if ( config ! = K Global: : config ( ) )
if ( config ! = TDE Global: : config ( ) )
{
saveMainWindowSettings ( config ) ;
}
@ -1551,7 +1551,7 @@ void Konsole::saveProperties(KConfig* config) {
}
// Called by constructor (with config = K Global::config())
// Called by constructor (with config = TDE Global::config())
// and by session-management (with config = sessionconfig).
// So it has to apply the settings when reading them.
void Konsole : : readProperties ( KConfig * config )
@ -1567,7 +1567,7 @@ void Konsole::readProperties(KConfig* config)
void Konsole : : readProperties ( KConfig * config , const TQString & schema , bool globalConfigOnly )
{
if ( config = = K Global: : config ( ) )
if ( config = = TDE Global: : config ( ) )
{
config - > setDesktopGroup ( ) ;
b_warnQuit = config - > readBoolEntry ( " WarnQuit " , true ) ;
@ -1614,7 +1614,7 @@ void Konsole::readProperties(KConfig* config, const TQString &schema, bool globa
// (1) set menu items and Konsole members
TQFont tmpFont = K GlobalSettings: : fixedFont ( ) ;
TQFont tmpFont = TDE GlobalSettings: : fixedFont ( ) ;
defaultFont = config - > readFontEntry ( " defaultfont " , & tmpFont ) ;
//set the schema
@ -2013,7 +2013,7 @@ void Konsole::slotSelectTabbar() {
void Konsole : : slotSaveSettings ( )
{
KConfig * config = K Global: : config ( ) ;
KConfig * config = TDE Global: : config ( ) ;
config - > setDesktopGroup ( ) ;
saveProperties ( config ) ;
saveMainWindowSettings ( config ) ;
@ -2047,7 +2047,7 @@ void Konsole::slotConfigureKeys()
m_shortcuts - > action ( i ) - > shortcut ( ) . count ( ) & &
TQString ( m_shortcuts - > action ( i ) - > name ( ) ) . startsWith ( " SSC_ " ) ) {
b_sessionShortcutsEnabled = true ;
KConfigGroup group ( K Global: : config ( ) , " General " ) ;
KConfigGroup group ( TDE Global: : config ( ) , " General " ) ;
group . writeEntry ( " SessionShortcutsEnabled " , true ) ;
}
}
@ -2078,8 +2078,8 @@ void Konsole::slotConfigure()
void Konsole : : reparseConfiguration ( )
{
K Global: : config ( ) - > reparseConfiguration ( ) ;
readProperties ( K Global: : config ( ) , TQString : : null , true ) ;
TDE Global: : config ( ) - > reparseConfiguration ( ) ;
readProperties ( TDE Global: : config ( ) , TQString : : null , true ) ;
// The .desktop files may have been changed by user...
b_sessionShortcutsMapped = false ;
@ -2125,7 +2125,7 @@ void Konsole::reparseConfiguration()
m_shortcuts - > readShortcutSettings ( ) ;
// User may have changed Schema->Set as default schema
s_kconfigSchema = K Global: : config ( ) - > readEntry ( " schema " ) ;
s_kconfigSchema = TDE Global: : config ( ) - > readEntry ( " schema " ) ;
ColorSchema * sch = colors - > find ( s_kconfigSchema ) ;
if ( ! sch )
{
@ -2662,8 +2662,8 @@ void Konsole::setSessionEncoding( const TQString &encoding, TESession *session )
session = se ;
bool found = false ;
TQString enc = K Global: : charsets ( ) - > encodingForName ( encoding ) ;
TQTextCodec * qtc = K Global: : charsets ( ) - > codecForName ( enc , found ) ;
TQString enc = TDE Global: : charsets ( ) - > encodingForName ( encoding ) ;
TQTextCodec * qtc = TDE Global: : charsets ( ) - > codecForName ( enc , found ) ;
if ( ! found | | ! qtc )
return ;
@ -2671,13 +2671,13 @@ void Konsole::setSessionEncoding( const TQString &encoding, TESession *session )
// it corresponds to.
int i = 0 ;
bool found_encoding = false ;
TQStringList encodingNames = K Global: : charsets ( ) - > descriptiveEncodingNames ( ) ;
TQStringList encodingNames = TDE Global: : charsets ( ) - > descriptiveEncodingNames ( ) ;
TQStringList : : ConstIterator it = encodingNames . begin ( ) ;
TQString t_encoding = encoding . lower ( ) ;
while ( it ! = encodingNames . end ( ) & & ! found_encoding )
{
if ( TQString : : compare ( K Global: : charsets ( ) - > encodingForName ( * it ) ,
if ( TQString : : compare ( TDE Global: : charsets ( ) - > encodingForName ( * it ) ,
t_encoding ) = = 0 ) {
found_encoding = true ;
}
@ -2727,7 +2727,7 @@ void Konsole::allowPrevNext()
KSimpleConfig * Konsole : : defaultSession ( )
{
if ( ! m_defaultSession ) {
KConfig * config = K Global: : config ( ) ;
KConfig * config = TDE Global: : config ( ) ;
config - > setDesktopGroup ( ) ;
setDefaultSession ( config - > readEntry ( " DefaultSession " , " shell.desktop " ) ) ;
}
@ -2886,7 +2886,7 @@ TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
initTEWidget ( te , te_old ) ;
}
else {
readProperties ( K Global: : config ( ) , " " , true ) ;
readProperties ( TDE Global: : config ( ) , " " , true ) ;
te - > setVTFont ( font ) ;
te - > setScrollbarLocation ( n_scroll ) ;
te - > setBellMode ( n_bell ) ;
@ -3287,9 +3287,9 @@ void Konsole::notifySessionState(TESession* session, int state)
& & session - > testAndSetStateIconName ( state_iconname )
& & m_tabViewMode ! = ShowTextOnly ) {
TQPixmap normal = K Global: : instance ( ) - > iconLoader ( ) - > loadIcon ( state_iconname ,
TQPixmap normal = TDE Global: : instance ( ) - > iconLoader ( ) - > loadIcon ( state_iconname ,
KIcon : : Small , 0 , KIcon : : DefaultState , 0L , true ) ;
TQPixmap active = K Global: : instance ( ) - > iconLoader ( ) - > loadIcon ( state_iconname ,
TQPixmap active = TDE Global: : instance ( ) - > iconLoader ( ) - > loadIcon ( state_iconname ,
KIcon : : Small , 0 , KIcon : : ActiveState , 0L , true ) ;
// make sure they are not larger than 16x16
@ -3375,7 +3375,7 @@ void Konsole::addSessionCommand(const TQString &path)
exec = KRun : : binaryName ( exec , false ) ;
exec = KShell : : tildeExpand ( exec ) ;
TQString pexec = K Global: : dirs ( ) - > findExe ( exec ) ;
TQString pexec = TDE Global: : dirs ( ) - > findExe ( exec ) ;
if ( typ . isEmpty ( ) | | txt . isEmpty ( ) | | typ ! = " KonsoleApplication "
| | ( ! exec . isEmpty ( ) & & pexec . isEmpty ( ) ) )
@ -3425,7 +3425,7 @@ void Konsole::loadSessionCommands()
addSessionCommand ( TQString : : null ) ;
TQStringList lst = K Global: : dirs ( ) - > findAllResources ( " appdata " , " *.desktop " , false , true ) ;
TQStringList lst = TDE Global: : dirs ( ) - > findAllResources ( " appdata " , " *.desktop " , false , true ) ;
for ( TQStringList : : Iterator it = lst . begin ( ) ; it ! = lst . end ( ) ; + + it )
if ( ! ( * it ) . endsWith ( " /shell.desktop " ) )
@ -4128,9 +4128,9 @@ void Konsole::slotZModemUpload()
i18n ( " <p>The current session already has a ZModem file transfer in progress. " ) ) ;
return ;
}
TQString zmodem = K Global: : dirs ( ) - > findExe ( " sz " ) ;
TQString zmodem = TDE Global: : dirs ( ) - > findExe ( " sz " ) ;
if ( zmodem . isEmpty ( ) )
zmodem = K Global: : dirs ( ) - > findExe ( " lsz " ) ;
zmodem = TDE Global: : dirs ( ) - > findExe ( " lsz " ) ;
if ( zmodem . isEmpty ( ) )
{
KMessageBox : : sorry ( this ,
@ -4155,9 +4155,9 @@ void Konsole::slotZModemDetected(TESession *session)
if ( se ! = session )
activateSession ( session ) ;
TQString zmodem = K Global: : dirs ( ) - > findExe ( " rz " ) ;
TQString zmodem = TDE Global: : dirs ( ) - > findExe ( " rz " ) ;
if ( zmodem . isEmpty ( ) )
zmodem = K Global: : dirs ( ) - > findExe ( " lrz " ) ;
zmodem = TDE Global: : dirs ( ) - > findExe ( " lrz " ) ;
if ( zmodem . isEmpty ( ) )
{
KMessageBox : : information ( this ,
@ -4167,7 +4167,7 @@ void Konsole::slotZModemDetected(TESession *session)
" <p>You may wish to install the 'rzsz' or 'lrzsz' package. \n " ) ) ;
return ;
}
KURLRequesterDlg dlg ( K GlobalSettings: : documentPath ( ) ,
KURLRequesterDlg dlg ( TDE GlobalSettings: : documentPath ( ) ,
i18n ( " A ZModem file transfer attempt has been detected. \n "
" Please specify the folder you want to store the file(s): " ) ,
this , " zmodem_dlg " ) ;