Mercurial > hg > octave-lyh
changeset 13388:f31614496d86
Removed color schemes.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sat, 09 Apr 2011 21:11:54 +0200 |
parents | cd47f7e16ee8 |
children | 6bdfa6012e77 |
files | gui//src/OctaveLink.cpp gui//src/QTerminalWidget.cpp gui//src/QTerminalWidget.h gui//src/TerminalMdiSubWindow.cpp |
diffstat | 4 files changed, 4 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/gui//src/OctaveLink.cpp +++ b/gui//src/OctaveLink.cpp @@ -85,7 +85,6 @@ OctaveLink oct_octave_server; - static octave_user_code * get_user_code (const std::string& fname = std::string ()) {
--- a/gui//src/QTerminalWidget.cpp +++ b/gui//src/QTerminalWidget.cpp @@ -32,8 +32,10 @@ TermWidgetImpl::TermWidgetImpl(QWidget* parent) { - this->m_session = createSession(); - this->m_terminalDisplay = createTerminalDisplay(this->m_session, parent); + m_session = createSession(); + m_terminalDisplay = createTerminalDisplay(this->m_session, parent); + m_terminalDisplay->setBackgroundColor(QColor(255, 255, 255)); + m_terminalDisplay->setForegroundColor(QColor(0, 0, 0)); } Session *TermWidgetImpl::createSession() @@ -144,22 +146,6 @@ m_impl->m_session->setCodec(codec); } -void QTerminalWidget::setColorScheme(ColorScheme scheme) -{ - /* - switch(scheme) { - case WhiteOnBlack: - m_impl->m_terminalDisplay->setColorTable(whiteonblack_color_table); - break; - case GreenOnBlack: - m_impl->m_terminalDisplay->setColorTable(greenonblack_color_table); - break; - case BlackOnLightYellow: - m_impl->m_terminalDisplay->setColorTable(blackonlightyellow_color_table); - break; - };*/ -} - void QTerminalWidget::setSize(int h, int v) { if (!m_impl->m_terminalDisplay)
--- a/gui//src/QTerminalWidget.h +++ b/gui//src/QTerminalWidget.h @@ -68,9 +68,6 @@ /** Text codec, default is UTF-8. */ void setTextCodec(QTextCodec *codec); - - /** Color scheme, default is white on black. */ - void setColorScheme(ColorScheme scheme); /** Resize terminal widget. */ void setSize(int h, int v);
--- a/gui//src/TerminalMdiSubWindow.cpp +++ b/gui//src/TerminalMdiSubWindow.cpp @@ -69,7 +69,6 @@ m_terminalWidget = new QTerminalWidget(0, hWidget); m_terminalWidget->setScrollBarPosition(QTerminalWidget::ScrollBarRight); m_terminalWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - m_terminalWidget->setColorScheme(QTerminalWidget::BlackOnLightYellow); QWidget *hvWidget = new QWidget(); QVBoxLayout *hvBoxLayout = new QVBoxLayout();