|
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 2951-2973
TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
Link Here
|
| 2951 |
s->setProgram(TQFile::encodeName(program),cmdArgs); |
2958 |
s->setProgram(TQFile::encodeName(program),cmdArgs); |
| 2952 |
s->setMonitorSilenceSeconds(monitorSilenceSeconds); |
2959 |
s->setMonitorSilenceSeconds(monitorSilenceSeconds); |
| 2953 |
s->enableFullScripting(b_fullScripting); |
2960 |
s->enableFullScripting(b_fullScripting); |
|
|
2961 |
s->setMetaAsAltMode(b_metaAsAlt); |
| 2962 |
|
| 2954 |
// If you add any new signal-slot connection below, think about doing it in konsolePart too |
2963 |
// If you add any new signal-slot connection below, think about doing it in konsolePart too |
| 2955 |
connect( s,TQT_SIGNAL(done(TESession*)), |
2964 |
connect( s,TQT_SIGNAL(done(TESession*)), |
| 2956 |
this,TQT_SLOT(doneSession(TESession*)) ); |
2965 |
this,TQT_SLOT(doneSession(TESession*))); |
| 2957 |
connect( s, TQT_SIGNAL( updateTitle(TESession*) ), |
2966 |
connect( s, TQT_SIGNAL(updateTitle(TESession*)), |
| 2958 |
this, TQT_SLOT( updateTitle(TESession*) ) ); |
2967 |
this, TQT_SLOT(updateTitle(TESession*))); |
| 2959 |
connect( s, TQT_SIGNAL( notifySessionState(TESession*, int) ), |
2968 |
connect( s, TQT_SIGNAL(notifySessionState(TESession*, int)), |
| 2960 |
this, TQT_SLOT( notifySessionState(TESession*, int)) ); |
2969 |
this, TQT_SLOT(notifySessionState(TESession*, int))); |
| 2961 |
connect( s, TQT_SIGNAL(disableMasterModeConnections()), |
2970 |
connect( s, TQT_SIGNAL(disableMasterModeConnections()), |
| 2962 |
this, TQT_SLOT(disableMasterModeConnections()) ); |
2971 |
this, TQT_SLOT(disableMasterModeConnections())); |
| 2963 |
connect( s, TQT_SIGNAL(enableMasterModeConnections()), |
2972 |
connect( s, TQT_SIGNAL(enableMasterModeConnections()), |
| 2964 |
this, TQT_SLOT(enableMasterModeConnections()) ); |
2973 |
this, TQT_SLOT(enableMasterModeConnections())); |
| 2965 |
connect( s, TQT_SIGNAL(renameSession(TESession*,const TQString&)), |
2974 |
connect( s, TQT_SIGNAL(renameSession(TESession*,const TQString&)), |
| 2966 |
this, TQT_SLOT(slotRenameSession(TESession*, const TQString&)) ); |
2975 |
this, TQT_SLOT(slotRenameSession(TESession*, const TQString&))); |
| 2967 |
connect( s->getEmulation(), TQT_SIGNAL(changeColumns(int)), |
2976 |
connect( s->getEmulation(), TQT_SIGNAL(changeColumns(int)), |
| 2968 |
this, TQT_SLOT(changeColumns(int)) ); |
2977 |
this, TQT_SLOT(changeColumns(int)) ); |
| 2969 |
connect( s->getEmulation(), TQT_SIGNAL(changeColLin(int,int)), |
2978 |
connect( s->getEmulation(), TQT_SIGNAL(changeColLin(int,int)), |
| 2970 |
this, TQT_SLOT(changeColLin(int,int)) ); |
2979 |
this, TQT_SLOT(changeColLin(int,int))); |
| 2971 |
connect( s->getEmulation(), TQT_SIGNAL(ImageSizeChanged(int,int)), |
2980 |
connect( s->getEmulation(), TQT_SIGNAL(ImageSizeChanged(int,int)), |
| 2972 |
this, TQT_SLOT(notifySize(int,int))); |
2981 |
this, TQT_SLOT(notifySize(int,int))); |
| 2973 |
connect( s, TQT_SIGNAL(zmodemDetected(TESession*)), |
2982 |
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 &)), |
2992 |
connect( s, TQT_SIGNAL(setSessionSchema(TESession*, const TQString &)), |
| 2984 |
this, TQT_SLOT(slotSetSessionSchema(TESession*, const TQString &))); |
2993 |
this, TQT_SLOT(slotSetSessionSchema(TESession*, const TQString &))); |
| 2985 |
connect( s, TQT_SIGNAL(changeTabTextColor(TESession*, int)), |
2994 |
connect( s, TQT_SIGNAL(changeTabTextColor(TESession*, int)), |
| 2986 |
this,TQT_SLOT(changeTabTextColor(TESession*, int)) ); |
2995 |
this,TQT_SLOT(changeTabTextColor(TESession*, int))); |
| 2987 |
|
2996 |
|
| 2988 |
s->widget()->setVTFont(defaultFont);// Hack to set font again after newSession |
2997 |
s->widget()->setVTFont(defaultFont);// Hack to set font again after newSession |
| 2989 |
s->setSchemaNo(schmno); |
2998 |
s->setSchemaNo(schmno); |