|
|
|
@ -273,6 +273,7 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo
|
|
|
|
|
,b_autoResizeTabs(false)
|
|
|
|
|
,b_installBitmapFonts(false)
|
|
|
|
|
,b_framevis(true)
|
|
|
|
|
,b_metaAsAlt(false)
|
|
|
|
|
,b_fullscreen(false)
|
|
|
|
|
,m_menuCreated(false)
|
|
|
|
|
,b_warnQuit(false)
|
|
|
|
@ -1622,6 +1623,7 @@ void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo
|
|
|
|
|
b_bidiEnabled = config->readBoolEntry("EnableBidi",false);
|
|
|
|
|
s_word_seps= config->readEntry("wordseps",":@-./_~");
|
|
|
|
|
b_framevis = config->readBoolEntry("has frame",true);
|
|
|
|
|
b_metaAsAlt = config->readBoolEntry("metaAsAltMode",false);
|
|
|
|
|
TQPtrList<TEWidget> tes = activeTEs();
|
|
|
|
|
for (TEWidget *_te = tes.first(); _te; _te = tes.next()) {
|
|
|
|
|
_te->setWordCharacters(s_word_seps);
|
|
|
|
@ -1636,7 +1638,10 @@ void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo
|
|
|
|
|
|
|
|
|
|
monitorSilenceSeconds=config->readUnsignedNumEntry("SilenceSeconds", 10);
|
|
|
|
|
for (TESession *ses = sessions.first(); ses; ses = sessions.next())
|
|
|
|
|
{
|
|
|
|
|
ses->setMetaAsAltMode(b_metaAsAlt);
|
|
|
|
|
ses->setMonitorSilenceSeconds(monitorSilenceSeconds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
b_xonXoff = config->readBoolEntry("XonXoff",false);
|
|
|
|
|
b_matchTabWinTitle = config->readBoolEntry("MatchTabWinTitle",false);
|
|
|
|
@ -2187,7 +2192,9 @@ void Konsole::reparseConfiguration()
|
|
|
|
|
curr_schema = sch->numb();
|
|
|
|
|
pmPath = sch->imagePath();
|
|
|
|
|
|
|
|
|
|
for (TESession *_se = sessions.first(); _se; _se = sessions.next()) {
|
|
|
|
|
for (TESession *_se = sessions.first(); _se; _se = sessions.next())
|
|
|
|
|
{
|
|
|
|
|
_se->setMetaAsAltMode(b_metaAsAlt);
|
|
|
|
|
ColorSchema* s = colors->find( _se->schemaNo() );
|
|
|
|
|
if (s) {
|
|
|
|
|
if (s->hasSchemaFileChanged())
|
|
|
|
@ -2369,8 +2376,14 @@ void Konsole::disableMasterModeConnections()
|
|
|
|
|
for (; to_it.current(); ++to_it) {
|
|
|
|
|
TESession *to = to_it.current();
|
|
|
|
|
if (to!=from)
|
|
|
|
|
{
|
|
|
|
|
disconnect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)),
|
|
|
|
|
to->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*)));
|
|
|
|
|
disconnect(from->widget(), TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
|
|
|
|
|
to->getEmulation(), TQT_SLOT(onKeyReleased(TQKeyEvent*)));
|
|
|
|
|
disconnect(from->widget(), TQT_SIGNAL(focusInSignal(TQFocusEvent*)),
|
|
|
|
|
to->getEmulation(), TQT_SLOT(onFocusIn(TQFocusEvent*)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2385,9 +2398,14 @@ void Konsole::enableMasterModeConnections()
|
|
|
|
|
TQPtrListIterator<TESession> to_it(sessions);
|
|
|
|
|
for (; to_it.current(); ++to_it) {
|
|
|
|
|
TESession *to = to_it.current();
|
|
|
|
|
if (to!=from) {
|
|
|
|
|
if (to!=from)
|
|
|
|
|
{
|
|
|
|
|
connect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)),
|
|
|
|
|
to->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*)));
|
|
|
|
|
connect(from->widget(), TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
|
|
|
|
|
to->getEmulation(), TQT_SLOT(onKeyReleased(TQKeyEvent*)));
|
|
|
|
|
connect(from->widget(), TQT_SIGNAL(focusInSignal(TQFocusEvent*)),
|
|
|
|
|
to->getEmulation(), TQT_SLOT(onFocusIn(TQFocusEvent*)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2951,6 +2969,8 @@ TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
|
|
|
|
|
s->setProgram(TQFile::encodeName(program),cmdArgs);
|
|
|
|
|
s->setMonitorSilenceSeconds(monitorSilenceSeconds);
|
|
|
|
|
s->enableFullScripting(b_fullScripting);
|
|
|
|
|
s->setMetaAsAltMode(b_metaAsAlt);
|
|
|
|
|
|
|
|
|
|
// If you add any new signal-slot connection below, think about doing it in konsolePart too
|
|
|
|
|
connect( s,TQT_SIGNAL(done(TESession*)),
|
|
|
|
|
this,TQT_SLOT(doneSession(TESession*)));
|
|
|
|
@ -3727,8 +3747,14 @@ void Konsole::detachSession(TESession* _se) {
|
|
|
|
|
for(; from_it.current(); ++from_it) {
|
|
|
|
|
TESession *from = from_it.current();
|
|
|
|
|
if(from->isMasterMode())
|
|
|
|
|
{
|
|
|
|
|
disconnect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)),
|
|
|
|
|
_se->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*)));
|
|
|
|
|
disconnect(from->widget(), TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
|
|
|
|
|
_se->getEmulation(), TQT_SLOT(onKeyReleased(TQKeyEvent*)));
|
|
|
|
|
disconnect(from->widget(), TQT_SIGNAL(focusInSignal(TQFocusEvent*)),
|
|
|
|
|
_se->getEmulation(), TQT_SLOT(onFocusIn(TQFocusEvent*)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|