summaryrefslogtreecommitdiff
Unidiff
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
@@ -724,38 +724,17 @@ void Konsole::colorMenuSelected(int 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);
@@ -764,28 +743,12 @@ void Konsole::configMenuSelected(int iD)
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");