-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 41 |
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 @@ -698,120 +698,83 @@ void Konsole::colorMenuSelected(int iD) } if(iD==-17) {// Black, Blue background.setRgb(0x00,0x00,0x00); foreground.setRgb(0x18,0xB2,0xB2); cfg.writeEntry("Schema","17"); colorMenu->setItemChecked(-17,TRUE); } if(iD==-18) {// Black, Gold background.setRgb(0x00,0x00,0x00); foreground.setRgb(255,215,0); cfg.writeEntry("Schema","18"); colorMenu->setItemChecked(-18,TRUE); } for (i = 0; i < TABLE_COLORS; i++) { if(i==0 || i == 10) { m_table[i].color = foreground; } else if(i==1 || i == 11) { m_table[i].color = background; m_table[i].transparent=0; } else m_table[i].color = defaultCt[i].color; } } lastSelectedMenu = iD; te->setColorTable(m_table); update(); } void Konsole::configMenuSelected(int iD) { - QString temp; - qDebug( temp.sprintf("configmenu %d",iD)); +// QString temp; +// qDebug( temp.sprintf("configmenu %d",iD)); TEWidget* te = getTe(); Config cfg("Konsole"); cfg.setGroup("Menubar"); -// if( iD == -2) { -// if(!secondToolBar->isHidden()) { -// secondToolBar->hide(); -// configMenu->changeItem( iD,"Show Command List"); -// cfg.writeEntry("Hidden","TRUE"); -// configMenu->setItemEnabled(-20 ,FALSE); -// } else { -// secondToolBar->show(); -// configMenu->changeItem( iD,"Hide Command List"); -// cfg.writeEntry("Hidden","FALSE"); -// configMenu->setItemEnabled(-20 ,TRUE); - -// if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") { -// configMenu->setItemChecked(-20,TRUE); -// commonCombo->setEditable( TRUE ); -// } else { -// configMenu->setItemChecked(-20,FALSE); -// commonCombo->setEditable( FALSE ); -// } -// } -// } if( iD == -4) { cfg.setGroup("Tabs"); QString tmp=cfg.readEntry("Position","Top"); if(tmp=="Top") { tab->setTabPosition(QTabWidget::Bottom); configMenu->changeItem( iD,"Tabs on Top"); cfg.writeEntry("Position","Bottom"); } else { tab->setTabPosition(QTabWidget::Top); configMenu->changeItem( iD,"Tabs on Bottom"); cfg.writeEntry("Position","Top"); } } -// if( iD == -20) { -// cfg.setGroup("Commands"); -// // qDebug("enableCommandEdit"); -// if( !configMenu->isItemChecked(iD) ) { -// commonCombo->setEditable( TRUE ); -// configMenu->setItemChecked(iD,TRUE); -// commonCombo->setCurrentItem(0); -// cfg.writeEntry("EditEnabled","TRUE"); -// } else { -// commonCombo->setEditable( FALSE ); -// configMenu->setItemChecked(iD,FALSE); -// cfg.writeEntry("EditEnabled","FALSE"); -// commonCombo->setFocusPolicy(QWidget::NoFocus); -// te->setFocus(); -// } -// } } void Konsole::changeCommand(const QString &text, int c) { Config cfg("Konsole"); cfg.setGroup("Commands"); if(commonCmds[c] != text) { cfg.writeEntry(QString::number(c),text); commonCombo->clearEdit(); commonCombo->setCurrentItem(c); } } void Konsole::setColor() { Config cfg("Konsole"); cfg.setGroup("Colors"); int scheme = cfg.readNumEntry("Schema",1); if(scheme != 1) colorMenuSelected( -scheme); } void Konsole::scrollMenuSelected(int index) { // QString temp; // qDebug( temp.sprintf("scrollbar menu %d",index)); TEWidget* te = getTe(); Config cfg("Konsole"); cfg.setGroup("Scrollbar"); switch( index){ case -24: te->setScrollbarLocation(0); cfg.writeEntry("Position",0); |