52,6 → 52,18 |
kDateWidget_RaBis->setDate(dt); |
kDateWidget_ZiGiltAb->setDate(QDate::currentDate()); |
kDoubleNumInput_Betrag->setValue(100000.0); |
checkBox_RaJan->setChecked(TRUE); |
checkBox_RaFeb->setChecked(TRUE); |
checkBox_RaMar->setChecked(TRUE); |
checkBox_RaApr->setChecked(TRUE); |
checkBox_RaMai->setChecked(TRUE); |
checkBox_RaJun->setChecked(TRUE); |
checkBox_RaJul->setChecked(TRUE); |
checkBox_RaAug->setChecked(TRUE); |
checkBox_RaSep->setChecked(TRUE); |
checkBox_RaOkt->setChecked(TRUE); |
checkBox_RaNov->setChecked(TRUE); |
checkBox_RaDez->setChecked(TRUE); |
} |
|
tilgungsplanWidget::~tilgungsplanWidget() |
66,20 → 78,6 |
int ret, day1, day2, mon1, mon2, year1, year2; |
char hv0[255]; |
|
// Wurde eine Zinssatzänderung gewünscht, dann rufen wird die |
// Dialogbox dazu auf. |
if (checkBox_ZiChange->isChecked()) |
{ |
ziaendWidgetBase *dlg = new ziaendWidgetBase(this, "ziaendWidgetBase", TRUE, 0); |
|
if (dlg->exec() == QDialog::Accepted) |
zia = QString::fromUtf8(".zinstbl.dat"); |
else |
zia = QString::fromUtf8(""); |
|
delete dlg; |
} |
|
// Zuweisen der Inhalte der Widgets zur internen Parameterstruktur. |
TpPars.effformel = 0.0; |
TpPars.gewicht = 0.0; |
118,18 → 116,18 |
TpPars.spesen = kDoubleNumInput_Fixspesen->value(); |
TpPars.rahmen = kDoubleNumInput_Betrag->value(); |
TpPars.kapital = 0.0; |
TpPars.raplan[0] = atoi(lineEdit_RaJan->text()); |
TpPars.raplan[1] = atoi(lineEdit_RaFeb->text()); |
TpPars.raplan[2] = atoi(lineEdit_RaMar->text()); |
TpPars.raplan[3] = atoi(lineEdit_RaApr->text()); |
TpPars.raplan[4] = atoi(lineEdit_RaMai->text()); |
TpPars.raplan[5] = atoi(lineEdit_RaJun->text()); |
TpPars.raplan[6] = atoi(lineEdit_RaJul->text()); |
TpPars.raplan[7] = atoi(lineEdit_RaAug->text()); |
TpPars.raplan[8] = atoi(lineEdit_RaSep->text()); |
TpPars.raplan[9] = atoi(lineEdit_RaOkt->text()); |
TpPars.raplan[10] = atoi(lineEdit_RaNov->text()); |
TpPars.raplan[11] = atoi(lineEdit_RaDez->text()); |
TpPars.raplan[0] = checkBox_RaJan->isChecked(); |
TpPars.raplan[1] = checkBox_RaFeb->isChecked(); |
TpPars.raplan[2] = checkBox_RaMar->isChecked(); |
TpPars.raplan[3] = checkBox_RaApr->isChecked(); |
TpPars.raplan[4] = checkBox_RaMai->isChecked(); |
TpPars.raplan[5] = checkBox_RaJun->isChecked(); |
TpPars.raplan[6] = checkBox_RaJul->isChecked(); |
TpPars.raplan[7] = checkBox_RaAug->isChecked(); |
TpPars.raplan[8] = checkBox_RaSep->isChecked(); |
TpPars.raplan[9] = checkBox_RaOkt->isChecked(); |
TpPars.raplan[10] = checkBox_RaNov->isChecked(); |
TpPars.raplan[11] = checkBox_RaDez->isChecked(); |
TpPars.rate = kDoubleNumInput_Rate->value(); |
dt = kDateWidget_RaVon->date(); |
TpPars.dvon = make_date(dt.day(), dt.month(), dt.year()); |
196,7 → 194,8 |
case 19: str = QString::fromUtf8("Die letzte Einschränkung oder die Ratenleiste ist ungültig!"); break; |
case 22: str = QString::fromUtf8("Nicht genügend Speicher!"); break; |
case 23: str = QString::fromUtf8("\"Antizipativ\" erlaubt keine Zinssatzänderung!"); break; |
case 24: str = QString::fromUtf8("Fehler beim Lesen der Zinssatzänderungen!"); break; |
case 24: |
case 25: str = QString::fromUtf8("Fehler beim Lesen der Zinssatzänderungen!"); break; |
default: |
sprintf (hv0, "Unbekannter Fehler \"%d\"! Prüfen Sie die Eingaben.", ret); |
str = QString::fromUtf8(hv0); |
205,6 → 204,12 |
KMessageBox::error(0, str, i18n("Fehler")); |
lineEdit_EffZi->clear(); |
lineEdit_GesBelast->clear(); |
lineEdit_ErgRate->clear(); |
lineEdit_ErgLRate->clear(); |
lineEdit_ErgZinsen->clear(); |
lineEdit_ErgZiZusch->clear(); |
lineEdit_ErgAnnZusch->clear(); |
lineEdit_ErgSumAnnZusch->clear(); |
return; |
} |
// cout << "Effektivzinssätze: " << TpPars.effformel << ", " << TpPars.gewicht << endl; |
211,151 → 216,83 |
PointNumber(TpPars.effformel, 3, &hv0[0]); |
lineEdit_EffZi->clear(); |
lineEdit_EffZi->insert(hv0); |
|
PointNumber(TpPars.gesamt, 2, &hv0[0]); |
lineEdit_GesBelast->clear(); |
lineEdit_GesBelast->insert(hv0); |
kDoubleNumInput_Rate->setValue(TpPars.ergrate); |
|
// kDoubleNumInput_Rate->setValue(TpPars.ergrate); |
kIntNumInput_AnzRaten->setValue(TpPars.anzraten); |
|
date_int(&day1, &mon1, &year1, TpPars.dbis); |
dt.setYMD(year1, mon1, day1); |
kDateWidget_RaBis->setDate(dt); |
|
date_int(&day1, &mon1, &year1, TpPars.endfaell); |
dt.setYMD(year1, mon1, day1); |
kDateWidget_Endfael->setDate(dt); |
|
PointNumber(TpPars.ergrate, 2, hv0); |
lineEdit_ErgRate->clear(); |
lineEdit_ErgRate->insert(hv0); |
|
PointNumber(TpPars.lrate, 2, hv0); |
lineEdit_ErgLRate->clear(); |
lineEdit_ErgLRate->insert(hv0); |
|
PointNumber(TpPars.ezins, 2, hv0); |
lineEdit_ErgZinsen->clear(); |
lineEdit_ErgZinsen->insert(hv0); |
|
PointNumber(TpPars.zuschuss, 2, hv0); |
lineEdit_ErgZiZusch->clear(); |
lineEdit_ErgZiZusch->insert(hv0); |
|
PointNumber(TpPars.anzuschuss, 2, hv0); |
lineEdit_ErgAnnZusch->clear(); |
lineEdit_ErgAnnZusch->insert(hv0); |
|
PointNumber(TpPars.antotal, 2, hv0); |
lineEdit_ErgSumAnnZusch->clear(); |
lineEdit_ErgSumAnnZusch->insert(hv0); |
} |
|
void tilgungsplanWidget::txRaDezSlot() |
{ |
QString svalue = lineEdit_RaDez->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaDez->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaNovSlot() |
{ |
QString svalue = lineEdit_RaNov->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaNov->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaOktSlot() |
{ |
QString svalue = lineEdit_RaOkt->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaOkt->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaSepSlot() |
{ |
QString svalue = lineEdit_RaSep->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaSep->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaAugSlot() |
{ |
QString svalue = lineEdit_RaAug->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaAug->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaJulSlot() |
{ |
QString svalue = lineEdit_RaJul->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaJul->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaJunSlot() |
{ |
QString svalue = lineEdit_RaJun->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaJun->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaMaiSlot() |
{ |
QString svalue = lineEdit_RaMai->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaMai->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaMarSlot() |
{ |
QString svalue = lineEdit_RaMar->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaMar->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaFebSlot() |
{ |
QString svalue = lineEdit_RaFeb->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaFeb->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaJanSlot() |
{ |
QString svalue = lineEdit_RaJan->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaJan->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txRaAprSlot() |
{ |
QString svalue = lineEdit_RaApr->text(); |
{} |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_RaApr->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txGesBelastSlot() |
{} |
|
362,136 → 299,6 |
void tilgungsplanWidget::txEffZiSlot() |
{} |
|
void tilgungsplanWidget::txAbDezSlot() |
{ |
QString svalue = lineEdit_AbDez->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbDez->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbNovSlot() |
{ |
QString svalue = lineEdit_AbNov->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbNov->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbOktSlot() |
{ |
QString svalue = lineEdit_AbOkt->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbOkt->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbSepSlot() |
{ |
QString svalue = lineEdit_AbSep->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbSep->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbAugSlot() |
{ |
QString svalue = lineEdit_AbAug->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbAug->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbJulSlot() |
{ |
QString svalue = lineEdit_AbJul->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbJul->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbJunSlot() |
{ |
QString svalue = lineEdit_AbJun->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbJun->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbMaiSlot() |
{QString svalue = lineEdit_AbMai->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbMai->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
}} |
|
void tilgungsplanWidget::txAbMarSlot() |
{ |
QString svalue = lineEdit_AbMar->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbMar->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbFebSlot() |
{ |
QString svalue = lineEdit_AbFeb->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbFeb->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbJanSlot() |
{ |
QString svalue = lineEdit_AbJan->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbJan->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::txAbAprSlot() |
{ |
QString svalue = lineEdit_AbApr->text(); |
|
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1")) |
{ |
lineEdit_AbApr->clear(); |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung")); |
} |
} |
|
void tilgungsplanWidget::intAnzRatenSlot() |
{} |
|
531,6 → 338,19 |
void tilgungsplanWidget::mnCalcTPSlot() |
{} |
|
void tilgungsplanWidget::mnInputZiSlot() |
{ |
ziaendWidget *dlg = new ziaendWidget(this, "ziaendWidgetBase", TRUE, 0); |
QString zia; |
|
if (dlg->exec() == QDialog::Accepted) |
zia = QString::fromUtf8(".zinstbl.dat"); |
else |
zia = QString::fromUtf8(""); |
|
delete dlg; |
} |
|
void tilgungsplanWidget::lbVerzartSlot() |
{} |
|
589,8 → 409,10 |
{} |
|
void tilgungsplanWidget::fileExit() |
{} |
{ |
|
} |
|
void tilgungsplanWidget::filePrint() |
{} |
|