|
Lines 273-278
Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo
Link Here
|
| 273 |
,b_autoResizeTabs(false) |
273 |
,b_autoResizeTabs(false) |
| 274 |
,b_installBitmapFonts(false) |
274 |
,b_installBitmapFonts(false) |
| 275 |
,b_framevis(true) |
275 |
,b_framevis(true) |
|
|
276 |
,b_metaAsAlt(false) |
| 276 |
,b_fullscreen(false) |
277 |
,b_fullscreen(false) |
| 277 |
,m_menuCreated(false) |
278 |
,m_menuCreated(false) |
| 278 |
,b_warnQuit(false) |
279 |
,b_warnQuit(false) |
|
Lines 1622-1627
void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo
Link Here
|
| 1622 |
b_bidiEnabled = config->readBoolEntry("EnableBidi",false); |
1623 |
b_bidiEnabled = config->readBoolEntry("EnableBidi",false); |
| 1623 |
s_word_seps= config->readEntry("wordseps",":@-./_~"); |
1624 |
s_word_seps= config->readEntry("wordseps",":@-./_~"); |
| 1624 |
b_framevis = config->readBoolEntry("has frame",true); |
1625 |
b_framevis = config->readBoolEntry("has frame",true); |
|
|
1626 |
b_metaAsAlt = config->readBoolEntry("metaAsAltMode",false); |
| 1625 |
TQPtrList<TEWidget> tes = activeTEs(); |
1627 |
TQPtrList<TEWidget> tes = activeTEs(); |
| 1626 |
for (TEWidget *_te = tes.first(); _te; _te = tes.next()) { |
1628 |
for (TEWidget *_te = tes.first(); _te; _te = tes.next()) { |
| 1627 |
_te->setWordCharacters(s_word_seps); |
1629 |
_te->setWordCharacters(s_word_seps); |
|
Lines 1636-1642
void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo
Link Here
|
| 1636 |
|
1638 |
|
| 1637 |
monitorSilenceSeconds=config->readUnsignedNumEntry("SilenceSeconds", 10); |
1639 |
monitorSilenceSeconds=config->readUnsignedNumEntry("SilenceSeconds", 10); |
| 1638 |
for (TESession *ses = sessions.first(); ses; ses = sessions.next()) |
1640 |
for (TESession *ses = sessions.first(); ses; ses = sessions.next()) |
|
|
1641 |
{ |
| 1642 |
ses->setMetaAsAltMode(b_metaAsAlt); |
| 1639 |
ses->setMonitorSilenceSeconds(monitorSilenceSeconds); |
1643 |
ses->setMonitorSilenceSeconds(monitorSilenceSeconds); |
|
|
1644 |
} |
| 1640 |
|
1645 |
|
| 1641 |
b_xonXoff = config->readBoolEntry("XonXoff",false); |
1646 |
b_xonXoff = config->readBoolEntry("XonXoff",false); |
| 1642 |
b_matchTabWinTitle = config->readBoolEntry("MatchTabWinTitle",false); |
1647 |
b_matchTabWinTitle = config->readBoolEntry("MatchTabWinTitle",false); |
|
Lines 2187-2193
void Konsole::reparseConfiguration()
Link Here
|
| 2187 |
curr_schema = sch->numb(); |
2192 |
curr_schema = sch->numb(); |
| 2188 |
pmPath = sch->imagePath(); |
2193 |
pmPath = sch->imagePath(); |
| 2189 |
|
2194 |
|
| 2190 |
for (TESession *_se = sessions.first(); _se; _se = sessions.next()) { |
2195 |
for (TESession *_se = sessions.first(); _se; _se = sessions.next()) |
|
|
2196 |
{ |
| 2197 |
_se->setMetaAsAltMode(b_metaAsAlt); |
| 2191 |
ColorSchema* s = colors->find( _se->schemaNo() ); |
2198 |
ColorSchema* s = colors->find( _se->schemaNo() ); |
| 2192 |
if (s) { |
2199 |
if (s) { |
| 2193 |
if (s->hasSchemaFileChanged()) |
2200 |
if (s->hasSchemaFileChanged()) |
|
Lines 2369-2376
void Konsole::disableMasterModeConnections()
Link Here
|
| 2369 |
for (; to_it.current(); ++to_it) { |
2376 |
for (; to_it.current(); ++to_it) { |
| 2370 |
TESession *to = to_it.current(); |
2377 |
TESession *to = to_it.current(); |
| 2371 |
if (to!=from) |
2378 |
if (to!=from) |
|
|
2379 |
{ |
| 2372 |
disconnect(from->widget(),TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)), |
2380 |
disconnect(from->widget(),TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)), |
| 2373 |
to->getEmulation(),TQT_SLOT(onKeyPress(TQKeyEvent*))); |
2381 |
to->getEmulation(),TQT_SLOT(onKeyPress(TQKeyEvent*))); |
|
|
2382 |
disconnect(from->widget(),TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)), |
| 2383 |
to->getEmulation(),TQT_SLOT(onKeyReleased(TQKeyEvent*))); |
| 2384 |
} |
| 2374 |
} |
2385 |
} |
| 2375 |
} |
2386 |
} |
| 2376 |
} |
2387 |
} |
|
Lines 2385-2393
void Konsole::enableMasterModeConnections()
Link Here
|
| 2385 |
TQPtrListIterator<TESession> to_it(sessions); |
2396 |
TQPtrListIterator<TESession> to_it(sessions); |
| 2386 |
for (; to_it.current(); ++to_it) { |
2397 |
for (; to_it.current(); ++to_it) { |
| 2387 |
TESession *to = to_it.current(); |
2398 |
TESession *to = to_it.current(); |
| 2388 |
if (to!=from) { |
2399 |
if (to!=from) |
|
|
2400 |
{ |
| 2389 |
connect(from->widget(),TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)), |
2401 |
connect(from->widget(),TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)), |
| 2390 |
to->getEmulation(),TQT_SLOT(onKeyPress(TQKeyEvent*))); |
2402 |
to->getEmulation(),TQT_SLOT(onKeyPress(TQKeyEvent*))); |
|
|
2403 |
connect(from->widget(),TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)), |
| 2404 |
to->getEmulation(),TQT_SLOT(onKeyReleased(TQKeyEvent*))); |
| 2391 |
} |
2405 |
} |
| 2392 |
} |
2406 |
} |
| 2393 |
} |
2407 |
} |
|
Lines 2951-2973
TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
Link Here
|
| 2951 |
s->setProgram(TQFile::encodeName(program),cmdArgs); |
2965 |
s->setProgram(TQFile::encodeName(program),cmdArgs); |
| 2952 |
s->setMonitorSilenceSeconds(monitorSilenceSeconds); |
2966 |
s->setMonitorSilenceSeconds(monitorSilenceSeconds); |
| 2953 |
s->enableFullScripting(b_fullScripting); |
2967 |
s->enableFullScripting(b_fullScripting); |
|
|
2968 |
s->setMetaAsAltMode(b_metaAsAlt); |
| 2969 |
|
| 2954 |
// If you add any new signal-slot connection below, think about doing it in konsolePart too |
2970 |
// If you add any new signal-slot connection below, think about doing it in konsolePart too |
| 2955 |
connect( s,TQT_SIGNAL(done(TESession*)), |
2971 |
connect( s,TQT_SIGNAL(done(TESession*)), |
| 2956 |
this,TQT_SLOT(doneSession(TESession*)) ); |
2972 |
this,TQT_SLOT(doneSession(TESession*))); |
| 2957 |
connect( s, TQT_SIGNAL( updateTitle(TESession*) ), |
2973 |
connect( s, TQT_SIGNAL(updateTitle(TESession*)), |
| 2958 |
this, TQT_SLOT( updateTitle(TESession*) ) ); |
2974 |
this, TQT_SLOT(updateTitle(TESession*))); |
| 2959 |
connect( s, TQT_SIGNAL( notifySessionState(TESession*, int) ), |
2975 |
connect( s, TQT_SIGNAL(notifySessionState(TESession*, int)), |
| 2960 |
this, TQT_SLOT( notifySessionState(TESession*, int)) ); |
2976 |
this, TQT_SLOT(notifySessionState(TESession*, int))); |
| 2961 |
connect( s, TQT_SIGNAL(disableMasterModeConnections()), |
2977 |
connect( s, TQT_SIGNAL(disableMasterModeConnections()), |
| 2962 |
this, TQT_SLOT(disableMasterModeConnections()) ); |
2978 |
this, TQT_SLOT(disableMasterModeConnections())); |
| 2963 |
connect( s, TQT_SIGNAL(enableMasterModeConnections()), |
2979 |
connect( s, TQT_SIGNAL(enableMasterModeConnections()), |
| 2964 |
this, TQT_SLOT(enableMasterModeConnections()) ); |
2980 |
this, TQT_SLOT(enableMasterModeConnections())); |
| 2965 |
connect( s, TQT_SIGNAL(renameSession(TESession*,const TQString&)), |
2981 |
connect( s, TQT_SIGNAL(renameSession(TESession*,const TQString&)), |
| 2966 |
this, TQT_SLOT(slotRenameSession(TESession*, const TQString&)) ); |
2982 |
this, TQT_SLOT(slotRenameSession(TESession*, const TQString&))); |
| 2967 |
connect( s->getEmulation(), TQT_SIGNAL(changeColumns(int)), |
2983 |
connect( s->getEmulation(), TQT_SIGNAL(changeColumns(int)), |
| 2968 |
this, TQT_SLOT(changeColumns(int)) ); |
2984 |
this, TQT_SLOT(changeColumns(int)) ); |
| 2969 |
connect( s->getEmulation(), TQT_SIGNAL(changeColLin(int,int)), |
2985 |
connect( s->getEmulation(), TQT_SIGNAL(changeColLin(int,int)), |
| 2970 |
this, TQT_SLOT(changeColLin(int,int)) ); |
2986 |
this, TQT_SLOT(changeColLin(int,int))); |
| 2971 |
connect( s->getEmulation(), TQT_SIGNAL(ImageSizeChanged(int,int)), |
2987 |
connect( s->getEmulation(), TQT_SIGNAL(ImageSizeChanged(int,int)), |
| 2972 |
this, TQT_SLOT(notifySize(int,int))); |
2988 |
this, TQT_SLOT(notifySize(int,int))); |
| 2973 |
connect( s, TQT_SIGNAL(zmodemDetected(TESession*)), |
2989 |
connect( s, TQT_SIGNAL(zmodemDetected(TESession*)), |
|
Lines 2983-2989
TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
Link Here
|
| 2983 |
connect( s, TQT_SIGNAL(setSessionSchema(TESession*, const TQString &)), |
2999 |
connect( s, TQT_SIGNAL(setSessionSchema(TESession*, const TQString &)), |
| 2984 |
this, TQT_SLOT(slotSetSessionSchema(TESession*, const TQString &))); |
3000 |
this, TQT_SLOT(slotSetSessionSchema(TESession*, const TQString &))); |
| 2985 |
connect( s, TQT_SIGNAL(changeTabTextColor(TESession*, int)), |
3001 |
connect( s, TQT_SIGNAL(changeTabTextColor(TESession*, int)), |
| 2986 |
this,TQT_SLOT(changeTabTextColor(TESession*, int)) ); |
3002 |
this,TQT_SLOT(changeTabTextColor(TESession*, int))); |
| 2987 |
|
3003 |
|
| 2988 |
s->widget()->setVTFont(defaultFont);// Hack to set font again after newSession |
3004 |
s->widget()->setVTFont(defaultFont);// Hack to set font again after newSession |
| 2989 |
s->setSchemaNo(schmno); |
3005 |
s->setSchemaNo(schmno); |
|
Lines 3727-3734
void Konsole::detachSession(TESession* _se) {
Link Here
|
| 3727 |
for(; from_it.current(); ++from_it) { |
3743 |
for(; from_it.current(); ++from_it) { |
| 3728 |
TESession *from = from_it.current(); |
3744 |
TESession *from = from_it.current(); |
| 3729 |
if(from->isMasterMode()) |
3745 |
if(from->isMasterMode()) |
|
|
3746 |
{ |
| 3730 |
disconnect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)), |
3747 |
disconnect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)), |
| 3731 |
_se->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*))); |
3748 |
_se->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*))); |
|
|
3749 |
disconnect(from->widget(), TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)), |
| 3750 |
_se->getEmulation(), TQT_SLOT(onKeyReleased(TQKeyEvent*))); |
| 3751 |
} |
| 3732 |
} |
3752 |
} |
| 3733 |
} |
3753 |
} |
| 3734 |
|
3754 |
|