-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index bd33ba6..217d8d8 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -689,97 +689,97 @@ void Konsole::colorMenuSelected(int iD) | |||
689 | background.setRgb(0xFF,0xFF,0xFF); | 689 | background.setRgb(0xFF,0xFF,0xFF); |
690 | cfg.writeEntry("Schema","15"); | 690 | cfg.writeEntry("Schema","15"); |
691 | colorMenu->setItemChecked(-15,TRUE); | 691 | colorMenu->setItemChecked(-15,TRUE); |
692 | } | 692 | } |
693 | if(iD==-16) {// White, Cyan | 693 | if(iD==-16) {// White, Cyan |
694 | background.setRgb(0x18,0xB2,0xB2); | 694 | background.setRgb(0x18,0xB2,0xB2); |
695 | foreground.setRgb(0xFF,0xFF,0xFF); | 695 | foreground.setRgb(0xFF,0xFF,0xFF); |
696 | cfg.writeEntry("Schema","16"); | 696 | cfg.writeEntry("Schema","16"); |
697 | colorMenu->setItemChecked(-16,TRUE); | 697 | colorMenu->setItemChecked(-16,TRUE); |
698 | } | 698 | } |
699 | if(iD==-17) {// Black, Blue | 699 | if(iD==-17) {// Black, Blue |
700 | background.setRgb(0x00,0x00,0x00); | 700 | background.setRgb(0x00,0x00,0x00); |
701 | foreground.setRgb(0x18,0xB2,0xB2); | 701 | foreground.setRgb(0x18,0xB2,0xB2); |
702 | cfg.writeEntry("Schema","17"); | 702 | cfg.writeEntry("Schema","17"); |
703 | colorMenu->setItemChecked(-17,TRUE); | 703 | colorMenu->setItemChecked(-17,TRUE); |
704 | } | 704 | } |
705 | if(iD==-18) {// Black, Gold | 705 | if(iD==-18) {// Black, Gold |
706 | background.setRgb(0x00,0x00,0x00); | 706 | background.setRgb(0x00,0x00,0x00); |
707 | foreground.setRgb(255,215,0); | 707 | foreground.setRgb(255,215,0); |
708 | cfg.writeEntry("Schema","18"); | 708 | cfg.writeEntry("Schema","18"); |
709 | colorMenu->setItemChecked(-18,TRUE); | 709 | colorMenu->setItemChecked(-18,TRUE); |
710 | } | 710 | } |
711 | 711 | ||
712 | for (i = 0; i < TABLE_COLORS; i++) { | 712 | for (i = 0; i < TABLE_COLORS; i++) { |
713 | if(i==0 || i == 10) { | 713 | if(i==0 || i == 10) { |
714 | m_table[i].color = foreground; | 714 | m_table[i].color = foreground; |
715 | } | 715 | } |
716 | else if(i==1 || i == 11) { | 716 | else if(i==1 || i == 11) { |
717 | m_table[i].color = background; m_table[i].transparent=0; | 717 | m_table[i].color = background; m_table[i].transparent=0; |
718 | } | 718 | } |
719 | else | 719 | else |
720 | m_table[i].color = defaultCt[i].color; | 720 | m_table[i].color = defaultCt[i].color; |
721 | } | 721 | } |
722 | } | 722 | } |
723 | lastSelectedMenu = iD; | 723 | lastSelectedMenu = iD; |
724 | te->setColorTable(m_table); | 724 | te->setColorTable(m_table); |
725 | update(); | 725 | update(); |
726 | } | 726 | } |
727 | 727 | ||
728 | void Konsole::configMenuSelected(int iD) | 728 | void Konsole::configMenuSelected(int iD) |
729 | { | 729 | { |
730 | // QString temp; | 730 | // QString temp; |
731 | // qDebug( temp.sprintf("configmenu %d",iD)); | 731 | // qDebug( temp.sprintf("configmenu %d",iD)); |
732 | TEWidget* te = getTe(); | 732 | TEWidget* te = getTe(); |
733 | Config cfg("Konsole"); | 733 | Config cfg("Konsole"); |
734 | cfg.setGroup("Menubar"); | 734 | cfg.setGroup("Menubar"); |
735 | if( iD == -4) { | 735 | if( iD == -4) { |
736 | cfg.setGroup("Tabs"); | 736 | cfg.setGroup("Tabs"); |
737 | QString tmp=cfg.readEntry("Position","Top"); | 737 | QString tmp=cfg.readEntry("Position","Bottom"); |
738 | 738 | ||
739 | if(tmp=="Top") { | 739 | if(tmp=="Top") { |
740 | tab->setTabPosition(QTabWidget::Bottom); | 740 | tab->setTabPosition(QTabWidget::Bottom); |
741 | configMenu->changeItem( iD,"Tabs on Top"); | 741 | configMenu->changeItem( iD,"Tabs on Top"); |
742 | cfg.writeEntry("Position","Bottom"); | 742 | cfg.writeEntry("Position","Bottom"); |
743 | } else { | 743 | } else { |
744 | tab->setTabPosition(QTabWidget::Top); | 744 | tab->setTabPosition(QTabWidget::Top); |
745 | configMenu->changeItem( iD,"Tabs on Bottom"); | 745 | configMenu->changeItem( iD,"Tabs on Bottom"); |
746 | cfg.writeEntry("Position","Top"); | 746 | cfg.writeEntry("Position","Top"); |
747 | } | 747 | } |
748 | } | 748 | } |
749 | } | 749 | } |
750 | 750 | ||
751 | void Konsole::changeCommand(const QString &text, int c) | 751 | void Konsole::changeCommand(const QString &text, int c) |
752 | { | 752 | { |
753 | Config cfg("Konsole"); | 753 | Config cfg("Konsole"); |
754 | cfg.setGroup("Commands"); | 754 | cfg.setGroup("Commands"); |
755 | if(commonCmds[c] != text) { | 755 | if(commonCmds[c] != text) { |
756 | cfg.writeEntry(QString::number(c),text); | 756 | cfg.writeEntry(QString::number(c),text); |
757 | commonCombo->clearEdit(); | 757 | commonCombo->clearEdit(); |
758 | commonCombo->setCurrentItem(c); | 758 | commonCombo->setCurrentItem(c); |
759 | } | 759 | } |
760 | } | 760 | } |
761 | 761 | ||
762 | void Konsole::setColor() | 762 | void Konsole::setColor() |
763 | { | 763 | { |
764 | Config cfg("Konsole"); | 764 | Config cfg("Konsole"); |
765 | cfg.setGroup("Colors"); | 765 | cfg.setGroup("Colors"); |
766 | int scheme = cfg.readNumEntry("Schema",1); | 766 | int scheme = cfg.readNumEntry("Schema",1); |
767 | if(scheme != 1) colorMenuSelected( -scheme); | 767 | if(scheme != 1) colorMenuSelected( -scheme); |
768 | } | 768 | } |
769 | 769 | ||
770 | void Konsole::scrollMenuSelected(int index) | 770 | void Konsole::scrollMenuSelected(int index) |
771 | { | 771 | { |
772 | // QString temp; | 772 | // QString temp; |
773 | // qDebug( temp.sprintf("scrollbar menu %d",index)); | 773 | // qDebug( temp.sprintf("scrollbar menu %d",index)); |
774 | TEWidget* te = getTe(); | 774 | TEWidget* te = getTe(); |
775 | Config cfg("Konsole"); | 775 | Config cfg("Konsole"); |
776 | cfg.setGroup("Scrollbar"); | 776 | cfg.setGroup("Scrollbar"); |
777 | switch( index){ | 777 | switch( index){ |
778 | case -24: | 778 | case -24: |
779 | te->setScrollbarLocation(0); | 779 | te->setScrollbarLocation(0); |
780 | cfg.writeEntry("Position",0); | 780 | cfg.writeEntry("Position",0); |
781 | break; | 781 | break; |
782 | case -25: | 782 | case -25: |
783 | te->setScrollbarLocation(1); | 783 | te->setScrollbarLocation(1); |
784 | cfg.writeEntry("Position",1); | 784 | cfg.writeEntry("Position",1); |
785 | break; | 785 | break; |