[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/mathemagics
From:       Jason Katz-Brown <jason () katzbrown ! com>
Date:       2004-08-21 3:12:25
Message-ID: 20040821031225.84467925F () office ! kde ! org
[Download RAW message or body]

CVS commit by katz: 



add option to beep on error or not


  M +1 -1      mathemagics.cpp   1.26
  M +5 -0      optiondialog.cpp   1.8
  M +1 -0      optiondialog.h   1.3


--- kdenonbeta/mathemagics/mathemagics.cpp  #1.25:1.26
@@ -111,5 +111,5 @@ Mathemagics::Mathemagics(QWidget *parent
 
         (void) KStdAction::preferences(this, SLOT(slotConfigure()), \
                actionCollection());
-        (void) KStdAction::undo(this, SLOT(slotRestoreStack()), actionCollection());
+        (void) KStdAction::undo(this, SLOT(slotRestoreStack()), \
actionCollection())->setText(i18n("Restore stack levels"));  
         (void) KStdAction::configureToolbars(this, SLOT(configureToolBars()), \
actionCollection());

--- kdenonbeta/mathemagics/optiondialog.cpp  #1.7:1.8
@@ -38,4 +38,7 @@ ConfigureDialog::ConfigureDialog(QWidget
         NumLevelsNumBox = new QSpinBox(1, 40, 1, sBox);
 
+        BeepBox = new QCheckBox(i18n("&Beep on error"), DisplayPage);
+        dBox->addWidget(BeepBox);
+
         QFrame *HistoryPage = addPage(i18n("History"));
         QVBoxLayout *histBox = new QVBoxLayout(HistoryPage, marginHint(), \
spacingHint()); @@ -80,4 +83,5 @@ void ConfigureDialog::readConfig()
         PrecNumBox->setValue(kapp->config()->readNumEntry("formatPrec", 8));
         NumLevelsNumBox->setValue(kapp->config()->readNumEntry("numStackLevels", \
12)); +        BeepBox->setChecked(kapp->config()->readBoolEntry("beep", true));
         HistDepthBox->setValue(kapp->config()->readNumEntry("histNum", 15));
         ShowPeriodCheckBox->setChecked(kapp->config()->readBoolEntry("showPeriod", \
false)); @@ -93,4 +97,5 @@ void ConfigureDialog::writeConfig()
         kapp->config()->writeEntry("formatPrec", PrecNumBox->value());
         kapp->config()->writeEntry("numStackLevels", NumLevelsNumBox->value());
+        kapp->config()->writeEntry("beep", BeepBox->isChecked());
         kapp->config()->writeEntry("histNum", HistDepthBox->value());
         kapp->config()->writeEntry("showPeriod", ShowPeriodCheckBox->isChecked());

--- kdenonbeta/mathemagics/optiondialog.h  #1.2:1.3
@@ -35,4 +35,5 @@ private:
         QSpinBox *PrecNumBox;
         QSpinBox *NumLevelsNumBox;
+        QCheckBox *BeepBox;
         QLabel *NumBoxLabel;
         QCheckBox *FixedCheckBox;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic