author | llornkcor <llornkcor> | 2002-12-08 13:39:34 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-08 13:39:34 (UTC) |
commit | 76fda4ee71e83d46f31a77b6d433cefdf24b3e73 (patch) (unidiff) | |
tree | 7f42eaa5b101bd1433ba39d926c41e9ff1fd1a97 | |
parent | a88b210e6895614027c821bb5cedabc9b06117d3 (diff) | |
download | opie-76fda4ee71e83d46f31a77b6d433cefdf24b3e73.zip opie-76fda4ee71e83d46f31a77b6d433cefdf24b3e73.tar.gz opie-76fda4ee71e83d46f31a77b6d433cefdf24b3e73.tar.bz2 |
moved font menu to options due to wrapping of the toolbar when using languages other than english that tend to have many characters in words :)
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index 275a9a8..eda3135 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -300,6 +300,7 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
300 | colorMenu->insertItem(tr( "Custom")); | 300 | colorMenu->insertItem(tr( "Custom")); |
301 | #endif | 301 | #endif |
302 | 302 | ||
303 | configMenu->insertItem( tr("Font"), fontList ); | ||
303 | configMenu->insertItem(tr( "Colors") ,colorMenu); | 304 | configMenu->insertItem(tr( "Colors") ,colorMenu); |
304 | 305 | ||
305 | connect( fontList, SIGNAL( activated(int) ), this, SLOT( fontChanged(int) )); | 306 | connect( fontList, SIGNAL( activated(int) ), this, SLOT( fontChanged(int) )); |
@@ -307,7 +308,7 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
307 | connect( colorMenu, SIGNAL( activated(int) ), this, SLOT( colorMenuIsSelected(int) )); | 308 | connect( colorMenu, SIGNAL( activated(int) ), this, SLOT( colorMenuIsSelected(int) )); |
308 | connect( scrollMenu, SIGNAL(activated(int)),this,SLOT(scrollMenuSelected(int))); | 309 | connect( scrollMenu, SIGNAL(activated(int)),this,SLOT(scrollMenuSelected(int))); |
309 | connect(editCommandListMenu,SIGNAL(activated(int)),this,SLOT(editCommandListMenuSelected(int))); | 310 | connect(editCommandListMenu,SIGNAL(activated(int)),this,SLOT(editCommandListMenuSelected(int))); |
310 | menuBar->insertItem( tr("Font"), fontList ); | 311 | |
311 | menuBar->insertItem( tr("Options"), configMenu ); | 312 | menuBar->insertItem( tr("Options"), configMenu ); |
312 | 313 | ||
313 | QPEToolBar *toolbar = new QPEToolBar( this ); | 314 | QPEToolBar *toolbar = new QPEToolBar( this ); |
@@ -666,9 +667,10 @@ void Konsole::colorMenuIsSelected(int iD) { | |||
666 | /// ------------------------------- some new stuff by L.J. Potter | 667 | /// ------------------------------- some new stuff by L.J. Potter |
667 | void Konsole::colorMenuSelected(int iD) | 668 | void Konsole::colorMenuSelected(int iD) |
668 | { // this is NOT pretty, elegant or anything else besides functional | 669 | { // this is NOT pretty, elegant or anything else besides functional |
669 | // QString temp; | 670 | // QString temp; |
670 | // qDebug( temp.sprintf("colormenu %d", iD)); | 671 | // qDebug( temp.sprintf("colormenu %d", iD)); |
671 | TEWidget* te = getTe(); | 672 | |
673 | TEWidget* te = getTe(); | ||
672 | Config cfg("Konsole"); | 674 | Config cfg("Konsole"); |
673 | cfg.setGroup("Colors"); | 675 | cfg.setGroup("Colors"); |
674 | // QColor foreground; | 676 | // QColor foreground; |
@@ -799,9 +801,10 @@ void Konsole::colorMenuSelected(int iD) | |||
799 | 801 | ||
800 | void Konsole::configMenuSelected(int iD) | 802 | void Konsole::configMenuSelected(int iD) |
801 | { | 803 | { |
802 | // QString temp; | 804 | // QString temp; |
803 | // qDebug( temp.sprintf("configmenu %d",iD)); | 805 | // qDebug( temp.sprintf("configmenu %d",iD)); |
804 | TEWidget* te = getTe(); | 806 | |
807 | TEWidget* te = getTe(); | ||
805 | Config cfg("Konsole"); | 808 | Config cfg("Konsole"); |
806 | cfg.setGroup("Menubar"); | 809 | cfg.setGroup("Menubar"); |
807 | int i,j; | 810 | int i,j; |
@@ -871,7 +874,8 @@ void Konsole::setColor() | |||
871 | 874 | ||
872 | void Konsole::scrollMenuSelected(int index) | 875 | void Konsole::scrollMenuSelected(int index) |
873 | { | 876 | { |
874 | qDebug( "scrollbar menu %d",index); | 877 | // qDebug( "scrollbar menu %d",index); |
878 | |||
875 | TEWidget* te = getTe(); | 879 | TEWidget* te = getTe(); |
876 | Config cfg("Konsole"); | 880 | Config cfg("Konsole"); |
877 | cfg.setGroup("ScrollBar"); | 881 | cfg.setGroup("ScrollBar"); |