author | harlekin <harlekin> | 2002-08-25 14:46:55 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-25 14:46:55 (UTC) |
commit | 7a1c29bbf057967b1616265f384db5d12a94149f (patch) (unidiff) | |
tree | 49098b2cfbb63f5123f5df4338fc4e846bab5bca | |
parent | a7e92f1571bb593fbd2ffafbb6ca9d3499448e2e (diff) | |
download | opie-7a1c29bbf057967b1616265f384db5d12a94149f.zip opie-7a1c29bbf057967b1616265f384db5d12a94149f.tar.gz opie-7a1c29bbf057967b1616265f384db5d12a94149f.tar.bz2 |
tr change by carsten
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index f3792e4..a8ddc99 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -251,17 +251,17 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
251 | } | 251 | } |
252 | fontChanged(cfont); | 252 | fontChanged(cfont); |
253 | 253 | ||
254 | configMenu = new QPopupMenu( this); | 254 | configMenu = new QPopupMenu( this); |
255 | colorMenu = new QPopupMenu( this); | 255 | colorMenu = new QPopupMenu( this); |
256 | scrollMenu = new QPopupMenu( this); | 256 | scrollMenu = new QPopupMenu( this); |
257 | editCommandListMenu = new QPopupMenu( this); | 257 | editCommandListMenu = new QPopupMenu( this); |
258 | 258 | ||
259 | configMenu->insertItem("Command List",editCommandListMenu); | 259 | configMenu->insertItem(tr("Command List"), editCommandListMenu); |
260 | 260 | ||
261 | bool listHidden; | 261 | bool listHidden; |
262 | cfg.setGroup("Menubar"); | 262 | cfg.setGroup("Menubar"); |
263 | if( cfg.readEntry("Hidden","FALSE") == "TRUE") { | 263 | if( cfg.readEntry("Hidden","FALSE") == "TRUE") { |
264 | editCommandListMenu->insertItem( tr( "Show command list" )); | 264 | editCommandListMenu->insertItem( tr( "Show command list" )); |
265 | listHidden=TRUE; | 265 | listHidden=TRUE; |
266 | } else { | 266 | } else { |
267 | editCommandListMenu->insertItem( tr( "Hide command list" )); | 267 | editCommandListMenu->insertItem( tr( "Hide command list" )); |
@@ -616,17 +616,17 @@ void Konsole::switchSession(QWidget* w) { | |||
616 | if (cf) { | 616 | if (cf) { |
617 | cfont = i; | 617 | cfont = i; |
618 | } | 618 | } |
619 | } | 619 | } |
620 | } | 620 | } |
621 | 621 | ||
622 | void Konsole::colorMenuIsSelected(int iD) { | 622 | void Konsole::colorMenuIsSelected(int iD) { |
623 | fromMenu = TRUE; | 623 | fromMenu = TRUE; |
624 | colorMenuSelected(iD); | 624 | colorMenuSelected(iD); |
625 | } | 625 | } |
626 | 626 | ||
627 | /// ------------------------------- some new stuff by L.J. Potter | 627 | /// ------------------------------- some new stuff by L.J. Potter |
628 | void Konsole::colorMenuSelected(int iD) | 628 | void Konsole::colorMenuSelected(int iD) |
629 | { // this is NOT pretty, elegant or anything else besides functional | 629 | { // this is NOT pretty, elegant or anything else besides functional |
630 | // QString temp; | 630 | // QString temp; |
631 | // qDebug( temp.sprintf("colormenu %d", iD)); | 631 | // qDebug( temp.sprintf("colormenu %d", iD)); |
632 | TEWidget* te = getTe(); | 632 | TEWidget* te = getTe(); |
@@ -748,17 +748,17 @@ void Konsole::colorMenuSelected(int iD) | |||
748 | } | 748 | } |
749 | else | 749 | else |
750 | m_table[i].color = defaultCt[i].color; | 750 | m_table[i].color = defaultCt[i].color; |
751 | } | 751 | } |
752 | } | 752 | } |
753 | lastSelectedMenu = iD; | 753 | lastSelectedMenu = iD; |
754 | te->setColorTable(m_table); | 754 | te->setColorTable(m_table); |
755 | update(); | 755 | update(); |
756 | 756 | ||
757 | } | 757 | } |
758 | 758 | ||
759 | void Konsole::configMenuSelected(int iD) | 759 | void Konsole::configMenuSelected(int iD) |
760 | { | 760 | { |
761 | // QString temp; | 761 | // QString temp; |
762 | // qDebug( temp.sprintf("configmenu %d",iD)); | 762 | // qDebug( temp.sprintf("configmenu %d",iD)); |
763 | TEWidget* te = getTe(); | 763 | TEWidget* te = getTe(); |
764 | Config cfg("Konsole"); | 764 | Config cfg("Konsole"); |
@@ -924,17 +924,17 @@ void Konsole::changeForegroundColor(const QColor &color) { | |||
924 | cfg.writeEntry("foreground",color.name()); | 924 | cfg.writeEntry("foreground",color.name()); |
925 | cfg.write(); | 925 | cfg.write(); |
926 | 926 | ||
927 | qDebug("do other dialog"); | 927 | qDebug("do other dialog"); |
928 | ColorPopupMenu* penColorPopupMenu2 = new ColorPopupMenu(Qt::black, this,"background color"); | 928 | ColorPopupMenu* penColorPopupMenu2 = new ColorPopupMenu(Qt::black, this,"background color"); |
929 | connect(penColorPopupMenu2, SIGNAL(colorSelected(const QColor&)), this, | 929 | connect(penColorPopupMenu2, SIGNAL(colorSelected(const QColor&)), this, |
930 | SLOT(changeBackgroundColor(const QColor&))); | 930 | SLOT(changeBackgroundColor(const QColor&))); |
931 | penColorPopupMenu2->exec(); | 931 | penColorPopupMenu2->exec(); |
932 | 932 | ||
933 | } | 933 | } |
934 | 934 | ||
935 | void Konsole::changeBackgroundColor(const QColor &color) { | 935 | void Konsole::changeBackgroundColor(const QColor &color) { |
936 | 936 | ||
937 | qDebug("Change background"); | 937 | qDebug("Change background"); |
938 | Config cfg("Konsole"); | 938 | Config cfg("Konsole"); |
939 | cfg.setGroup("Colors"); | 939 | cfg.setGroup("Colors"); |
940 | int r, g, b; | 940 | int r, g, b; |