Diffstat (limited to 'core/apps/embeddedkonsole/konsole.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index 5a68c81..ebff05e 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp @@ -372,4 +372,8 @@ void Konsole::init(const char* _pgm, QStrList & _args) configMenu->insertItem(tr( "Wrap" )); + int jut = configMenu->insertItem(tr( "Use Beep" )); + cfg.setGroup("Menubar"); + configMenu->setItemChecked(jut, cfg.readBoolEntry("useBeep",0)); + //scrollMenuSelected(-29); @@ -793,4 +797,11 @@ void Konsole::configMenuSelected(int iD) Config cfg("Konsole"); cfg.setGroup("Menubar"); + int i,j; +#ifdef QWS_QT_OPIE + i=-29;j=-30; +#else + i=-28;j=-29; +#endif + if( iD == -4) { cfg.setGroup("Tabs"); @@ -807,11 +818,4 @@ void Konsole::configMenuSelected(int iD) } } - int i; -#ifdef QWS_QT_OPIE -i=-29; -#else -i=-28; -#endif - if( iD == i) { cfg.setGroup("ScrollBar"); @@ -828,4 +832,13 @@ i=-28; te->setScrollbarLocation( cfg.readNumEntry("Position",2)); } + if(iD == j) { + cfg.setGroup("Menubar"); + bool b=cfg.readBoolEntry("useBeep",0); + b=!b; + cfg.writeEntry("useBeep", b ); + cfg.write(); + configMenu->setItemChecked(j,b); + te->useBeep=b; + } } @@ -982,7 +995,7 @@ void Konsole::changeForegroundColor(const QColor &color) { color.rgb(&r,&g,&b); foreground.setRgb(r,g,b); -// QString colors; -// colors.sprintf("%d,%d,%d"color.red,color.green,color.blue); + cfg.writeEntry("foreground",color.name()); + qDebug("foreground "+color.name()); cfg.write(); @@ -1005,7 +1018,6 @@ void Konsole::changeBackgroundColor(const QColor &color) { color.rgb(&r,&g,&b); background.setRgb(r,g,b); -// QString colors; -// colors.sprintf("%d,%d,%d"color.red,color.green,color.blue); cfg.writeEntry("background",color.name()); + qDebug("background "+color.name()); cfg.write(); } @@ -1026,6 +1038,6 @@ i=-28; configMenu->setItemChecked( i,TRUE); } else { - te->setWrapAt(90); -// te->setWrapAt(120); +// te->setWrapAt(90); + te->setWrapAt(120); configMenu->setItemChecked( i,FALSE); } |