summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-02-03 18:30:58 (UTC)
committer llornkcor <llornkcor>2002-02-03 18:30:58 (UTC)
commit0c60039ffbd115dc09431722d105dfce4319e187 (patch) (unidiff)
tree024914c68b6acfd0022971521b50e79adbd41dfe
parent09c3eed0c594f4c93157faf5269ef4d975a310ca (diff)
downloadopie-0c60039ffbd115dc09431722d105dfce4319e187.zip
opie-0c60039ffbd115dc09431722d105dfce4319e187.tar.gz
opie-0c60039ffbd115dc09431722d105dfce4319e187.tar.bz2
took out commentedout code
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp41
1 files changed, 2 insertions, 39 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index bc5a766..bd33ba6 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -714,88 +714,51 @@ void Konsole::colorMenuSelected(int iD)
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
728void Konsole::configMenuSelected(int iD) 728void 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 == -2) {
736// if(!secondToolBar->isHidden()) {
737// secondToolBar->hide();
738// configMenu->changeItem( iD,"Show Command List");
739// cfg.writeEntry("Hidden","TRUE");
740// configMenu->setItemEnabled(-20 ,FALSE);
741// } else {
742// secondToolBar->show();
743// configMenu->changeItem( iD,"Hide Command List");
744// cfg.writeEntry("Hidden","FALSE");
745// configMenu->setItemEnabled(-20 ,TRUE);
746
747// if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") {
748// configMenu->setItemChecked(-20,TRUE);
749// commonCombo->setEditable( TRUE );
750// } else {
751// configMenu->setItemChecked(-20,FALSE);
752// commonCombo->setEditable( FALSE );
753// }
754// }
755// }
756 if( iD == -4) { 735 if( iD == -4) {
757 cfg.setGroup("Tabs"); 736 cfg.setGroup("Tabs");
758 QString tmp=cfg.readEntry("Position","Top"); 737 QString tmp=cfg.readEntry("Position","Top");
759 738
760 if(tmp=="Top") { 739 if(tmp=="Top") {
761 tab->setTabPosition(QTabWidget::Bottom); 740 tab->setTabPosition(QTabWidget::Bottom);
762 configMenu->changeItem( iD,"Tabs on Top"); 741 configMenu->changeItem( iD,"Tabs on Top");
763 cfg.writeEntry("Position","Bottom"); 742 cfg.writeEntry("Position","Bottom");
764 } else { 743 } else {
765 tab->setTabPosition(QTabWidget::Top); 744 tab->setTabPosition(QTabWidget::Top);
766 configMenu->changeItem( iD,"Tabs on Bottom"); 745 configMenu->changeItem( iD,"Tabs on Bottom");
767 cfg.writeEntry("Position","Top"); 746 cfg.writeEntry("Position","Top");
768 } 747 }
769 } 748 }
770// if( iD == -20) {
771// cfg.setGroup("Commands");
772// // qDebug("enableCommandEdit");
773// if( !configMenu->isItemChecked(iD) ) {
774// commonCombo->setEditable( TRUE );
775// configMenu->setItemChecked(iD,TRUE);
776// commonCombo->setCurrentItem(0);
777// cfg.writeEntry("EditEnabled","TRUE");
778// } else {
779// commonCombo->setEditable( FALSE );
780// configMenu->setItemChecked(iD,FALSE);
781// cfg.writeEntry("EditEnabled","FALSE");
782// commonCombo->setFocusPolicy(QWidget::NoFocus);
783// te->setFocus();
784// }
785// }
786} 749}
787 750
788void Konsole::changeCommand(const QString &text, int c) 751void Konsole::changeCommand(const QString &text, int c)
789{ 752{
790 Config cfg("Konsole"); 753 Config cfg("Konsole");
791 cfg.setGroup("Commands"); 754 cfg.setGroup("Commands");
792 if(commonCmds[c] != text) { 755 if(commonCmds[c] != text) {
793 cfg.writeEntry(QString::number(c),text); 756 cfg.writeEntry(QString::number(c),text);
794 commonCombo->clearEdit(); 757 commonCombo->clearEdit();
795 commonCombo->setCurrentItem(c); 758 commonCombo->setCurrentItem(c);
796 } 759 }
797} 760}
798 761
799void Konsole::setColor() 762void Konsole::setColor()
800{ 763{
801 Config cfg("Konsole"); 764 Config cfg("Konsole");