Temporary updates to konsole-part to make it build with new session interface. Will get back to this once the changes in the main Konsole application are done.

svn path=/branches/work/konsole-split-view/; revision=602856
wilder-portage
Robert Knight 20 years ago
parent 0b72f1d0ff
commit fd45655f22
  1. 6
      konsole/SPLIT-VIEW-TODO
  2. 21
      konsole/konsole_part.cpp

@ -5,11 +5,15 @@ TODO before merging with /trunk
- [DONE] Single top-bottom split-view menu action
- [DONE] Use correct color scheme in terminal display
- Fix all the parts of konsole_part marked "SPLIT-VIEW Fix"
- Prompt user when closing a session. Ensure the same close prompt
is shown no matter how the user closes the session.
- Ensure that when a new session is created, new views are created in all active containers.
- Update colour scheme of all views when user selects a new scheme via the Settings menu.
- Tab context menu
- Send Input to All Sessions

@ -523,8 +523,11 @@ void konsolePart::applyProperties()
se->setAddToUtmp( config->readEntry("AddToUtmp", QVariant(true)).toBool());
delete config;
se->widget()->setVTFont( defaultFont );
se->setSchemaNo( curr_schema );
//SPLIT-VIEW Fix
//se->widget()->setVTFont( defaultFont );
se->primaryView()->setVTFont( defaultFont );
//se->setSchemaNo( curr_schema );
slotSetEncoding();
}
@ -609,7 +612,8 @@ void konsolePart::saveProperties()
} else {
config->writeEntry("bellmode",n_bell);
config->writeEntry("BlinkingCursor", te->blinkingCursor());
config->writeEntry("defaultfont", (se->widget())->getVTFont());
//SPLIT-VIEW Fix
config->writeEntry("defaultfont", (se->primaryView())->getVTFont());
config->writeEntry("history", se->history().getSize());
config->writeEntry("historyenabled", b_histEnabled);
config->writeEntry("keytab",n_keytab);
@ -652,11 +656,14 @@ void konsolePart::slotSelectScrollbar()
void konsolePart::slotSelectFont() {
if ( !se ) return;
QFont font = se->widget()->getVTFont();
//SPLIT-VIEW Fix
//QFont font = se->widget()->getVTFont();
QFont font = se->primaryView()->getVTFont();
if ( KFontDialog::getFont( font, true ) != QDialog::Accepted )
return;
se->widget()->setVTFont( font );
se->primaryView()->setVTFont( font );
//se->widget()->setVTFont( font );
}
void konsolePart::biggerFont(void) {
@ -763,7 +770,9 @@ void konsolePart::setSchema(ColorSchema* s)
}
te->setColorTable(s->table());
se->setSchemaNo(s->numb());
//SPLIT-VIEW Fix
//se->setSchemaNo(s->numb());
}
void konsolePart::notifySize(int /* columns */, int /* lines */)

Loading…
Cancel
Save