/tilgungsplan/trunk/src/tilgrech.cpp |
---|
26,12 → 26,12 |
#include <qfile.h> |
#include <qstring.h> |
#include <qdir.h> |
#include <qdatetime.h> |
#include <stdio.h> |
#include <math.h> |
#include <string.h> |
#include <sys/stat.h> |
#include <iostream.h> |
#include "tilgplan.h" |
#include "helper.h" |
39,21 → 39,23 |
int MonLeiste[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; |
/* Jan Feb Mär Apr Mai Jun Jul Aug Sep Okt Nov Dez */; |
// Klassendefinition: DLG_ZIAEND ------------------------------------------ |
// Wenn dieses Modul mit dem Flag "_ZINSAENDERUNG" compiliert wurde, kann |
// eine Zinssatzänderung definiert werden. Dazu ist ein eigenes Dialog- |
// fenster notwendig. Die Klasse dafür ist hier definiert. |
// Das Dialogfenster kann nur dann aufgerufen werden, wenn das Mutter- |
// modul den Zeiger auf sich selbst übergeben hat (SetParent). |
// fenster notwendig. |
// Funktionen ------------------------------------------------------------- |
// Hauptprogramm |
// Druch aufrufen dieser Routine wird ein Tilgungsplan auf Grund der |
// Durch aufrufen dieser Routine wird ein Tilgungsplan auf Grund der |
// übergebenen Parameter errechnet und in einer Datei abgelegt. |
// Diese kann dann weiter bearbeitet werden. |
// |
// Die übergebenen Parameter enthalten auch Steuerkennzeichen. So kann auch |
// der Effektivzinssatz berechnet werden. Dazu muss der Kredit zunächst |
// normal durchgerechnet werden. Anschliessen wird mit der errechneten Rate, |
// jedoch ohne Spesen, Gebühren etc. der Plan für ein Jahr noch einmal |
// gerechnet. Die so ermittelten Zinsen ergeben den Effektivzinssatz. |
// |
int TRech::tilgpl () |
{ |
85,8 → 87,14 |
if (TpPars->ragab > TpPars->dvon) |
return 3; // Auszahlungsdatum > 1. Einschränkung |
if (TpPars->effekt && TpPars->rate <= 0.0) |
return 29; // Keine Rate, kein Effektivzins! |
// Abschlußrhythmus überprüfen |
if (TpPars->effekt && TpPars->abschlry != 12 && TpPars->abschlry != 52) |
return 26; // Für Effektivzinssatzberechnung nur jährlicher Abschluss erlaubt |
if (TpPars->abschlry != 1 && TpPars->abschlry != 3 && TpPars->abschlry != 6 && |
TpPars->abschlry != 12 && TpPars->abschlry != 41 && TpPars->abschlry != 43 && |
TpPars->abschlry != 46 && TpPars->abschlry != 47 && TpPars->abschlry != 48 && |
227,6 → 235,9 |
else |
return 12; // ungültige Verzinsungsart |
if (TpPars->effekt && (verzinsung == 1 || verzinsung == 3)) |
return 28; // Effektivzinss. nur bei dekursiv möglich |
// Verzinsungsart mit Abschlußrhythmus gegenprüfen |
if (TpPars->verzart == 1 && TpPars->abschlry != 43 && |
343,10 → 354,11 |
int TRech::DekursivTable () |
{ |
long tage; |
int vday, day, mon, year, akt_day, akt_mon; |
int vday, day, mon, year, akt_day, akt_mon, iday, imon, iyear; |
int at, am, aj; |
BOOL abschluss, r_yet; |
long lab; |
QDate dat1, dat2; |
// Wurde eine fixe Rate vorgegeben und ein Enfälligkeitsdatum |
// angegeben, muß die letzte Einschränkung gleich dem |
361,8 → 373,11 |
if (TpPars->dbis == 0L) |
{ |
tage = (99L * 365L) + (99L / 4L); // 99 Jahre ist maximale Laufzeit |
TpPars->dbis = DayToDate (tage + DateToDay (TpPars->ragab)); |
QDate dt; |
date_int(&day, &mon, &year, TpPars->ragab); |
dt.setYMD(year, mon, day); |
dt = dt.addYears(99); |
TpPars->dbis = dt.year() * 10000L + dt.month() * 100L + dt.day(); |
} |
// Wenn auf Ultimo gerechnet wird, muß der Tag der letzten |
385,9 → 400,25 |
// überprüfen der Laufzeit auf Grund der eingegebenen Daten |
if (TpPars->endfaell > 0L) |
tage = DateToDay (TpPars->endfaell) - DateToDay (TpPars->ragab); |
{ |
QDate dt1, dt2; |
date_int(&day, &mon, &year, TpPars->endfaell); |
dt1.setYMD(year, mon, day); |
date_int(&day, &mon, &year, TpPars->ragab); |
dt2.setYMD(year, mon, day); |
tage = dt2.daysTo(dt1); |
// tage = DateToDay (TpPars->endfaell) - DateToDay (TpPars->ragab); |
} |
else |
tage = DateToDay (TpPars->dbis) - DateToDay (TpPars->ragab); |
{ |
QDate dt1, dt2; |
date_int(&day, &mon, &year, TpPars->dbis); |
dt1.setYMD(year, mon, day); |
date_int(&day, &mon, &year, TpPars->ragab); |
dt2.setYMD(year, mon, day); |
tage = dt2.daysTo(dt1); |
// tage = DateToDay (TpPars->dbis) - DateToDay (TpPars->ragab); |
} |
if (tage > 36524L) |
return 14; // Laufzeit über 100 Jahre |
472,10 → 503,15 |
year++; |
} |
pos = DateToDay (r_dat) - DateToDay (TpPars->ragab); |
date_int(&iday, &imon, &iyear, r_dat); |
dat1.setYMD(iyear, imon, iday); |
date_int(&iday, &imon, &iyear, TpPars->ragab); |
dat2.setYMD(iyear, imon, iday); |
pos = dat2.daysTo(dat1); |
// pos = DateToDay (r_dat) - DateToDay (TpPars->ragab), r_dat, TpPars->ragab); |
} |
if (r_ind >= 1200 || a_ind >= 1200) |
if (TpPars->effekt && (r_ind >= 1200 || a_ind >= 1200)) |
return 20; // Rechenfehler |
if (lab != a_dat) |
876,7 → 912,7 |
QFile tmpFile, zaf; |
int fd, index, i; |
int real_rat, Abzug; |
long tg; |
long tg, effend; |
double zins, tilg, zi1, zi2, kzi; |
long offset; |
BOOL stop; |
892,11 → 928,22 |
hdir.append("/.date_tbl.dat"); |
tmpFile.setName(hdir); |
if (tmpFile.open(IO_ReadWrite | IO_Truncate) == FALSE) |
if (!TpPars->effekt) |
{ |
KMessageBox::error(0, QString("Could not open file for reading: %1").arg(tmpFile.errorString())); |
return 1; |
if (tmpFile.open(IO_ReadWrite | IO_Truncate) == FALSE) |
{ |
KMessageBox::error(0, QString("Could not open file for reading: %1").arg(tmpFile.errorString())); |
return 1; |
} |
} |
else |
{ |
if (tmpFile.open(IO_ReadOnly) == FALSE) |
{ |
KMessageBox::error(0, QString("Could not open file for reading: %1").arg(tmpFile.errorString())); |
return 1; |
} |
} |
fd = tmpFile.handle(); |
#ifdef _ZINSAENDERUNG |
940,8 → 987,11 |
index = max_abs + max_rat; |
/* Ausgangsdaten schreiben */ |
write (fd, TpPars, sizeof (TPPARS)); |
offset += (long)sizeof (TPPARS); |
if (!TpPars->effekt) |
{ |
write (fd, TpPars, sizeof (TPPARS)); |
offset += (long)sizeof (TPPARS); |
} |
/* Initialisierung der Schleife */ |
956,6 → 1006,11 |
real_rat = max_rat; |
Abzug = 0; // wird nur bei Ratenvorgabe verwendet |
if (TpPars->effekt) |
effend = TpPars->dvon + 10000L; // 1 Jahr für Effektivzinsberechnung |
else |
effend = 0L; |
/* Schleife zur Berechnung der Gesamtbelastung (Dekursiv) */ |
for (i = 0; i < index; i++) |
1140,8 → 1195,13 |
continue; |
} |
write (fd, &DTable, sizeof (DTABLE)); |
offset += (long)sizeof (DTABLE); |
if (!TpPars->effekt) |
{ |
write (fd, &DTable, sizeof (DTABLE)); |
offset += (long)sizeof (DTABLE); |
} |
else if (DTable.datum > effend) |
break; |
} /* end for */ |
if (TpPars->fixrate == TRUE) |
1175,7 → 1235,9 |
TpPars->anzuschuss = TpPars->antotal = 0.0; |
DTable.rkapi = TpPars->lrate; |
write (fd, &DTable, sizeof (DTABLE)); |
if (!TpPars->effekt) |
write (fd, &DTable, sizeof (DTABLE)); |
#ifdef _ZINSAENDERUNG |
if (TpPars->gewicht > 0.0) |
TpPars->zssoll = TpPars->gewicht; |
1182,9 → 1244,13 |
zaf.close(); |
#endif |
tmpFile.flush(); |
lseek (fd, 0L, 0); |
write (fd, TpPars, sizeof (TPPARS)); |
if (!TpPars->effekt) |
{ |
tmpFile.flush(); |
lseek (fd, 0L, 0); |
write (fd, TpPars, sizeof (TPPARS)); |
} |
tmpFile.close (); |
return 0; |
} |
/tilgungsplan/trunk/src/Makefile.in |
---|
57,14 → 57,16 |
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) |
PROGRAMS = $(bin_PROGRAMS) |
am_tilgungsplan_OBJECTS = helper.$(OBJEXT) main.$(OBJEXT) \ |
tilgrech.$(OBJEXT) tilgungsplan.$(OBJEXT) \ |
tilgungsplanwidget.$(OBJEXT) ziaendwidget.$(OBJEXT) |
ratenplanwidget.$(OBJEXT) tilgrech.$(OBJEXT) \ |
tilgungsplan.$(OBJEXT) tilgungsplanwidget.$(OBJEXT) \ |
ziaendwidget.$(OBJEXT) |
#>- tilgungsplan_OBJECTS = $(am_tilgungsplan_OBJECTS) |
#>+ 6 |
#>+ 7 |
tilgungsplan_final_OBJECTS = tilgungsplan.all_cpp.o |
tilgungsplan_nofinal_OBJECTS = helper.$(OBJEXT) main.$(OBJEXT) \ |
tilgrech.$(OBJEXT) tilgungsplan.$(OBJEXT) \ |
tilgungsplanwidget.$(OBJEXT) ziaendwidget.$(OBJEXT) tilgungsplanwidgetbase.$(OBJEXT) zinssatzaenderung.$(OBJEXT) |
ratenplanwidget.$(OBJEXT) tilgrech.$(OBJEXT) \ |
tilgungsplan.$(OBJEXT) tilgungsplanwidget.$(OBJEXT) \ |
ziaendwidget.$(OBJEXT) ratenplan.$(OBJEXT) tilgungsplanwidgetbase.$(OBJEXT) zinssatzaenderung.$(OBJEXT) |
@KDE_USE_FINAL_FALSE@tilgungsplan_OBJECTS = $(tilgungsplan_nofinal_OBJECTS) |
@KDE_USE_FINAL_TRUE@tilgungsplan_OBJECTS = $(tilgungsplan_final_OBJECTS) |
am__DEPENDENCIES_1 = |
365,13 → 367,15 |
KDE_ICON = AUTO |
# the application source, library search path, and link libraries |
#>- tilgungsplan_SOURCES = helper.cpp main.cpp tilgrech.cpp tilgungsplan.cpp \ |
#>- tilgungsplanwidget.cpp tilgungsplanwidgetbase.ui ziaendwidget.cpp zinssatzaenderung.ui |
#>+ 2 |
tilgungsplan_SOURCES=helper.cpp main.cpp tilgrech.cpp tilgungsplan.cpp \ |
tilgungsplanwidget.cpp ziaendwidget.cpp tilgungsplanwidgetbase.cpp zinssatzaenderung.cpp |
#>- tilgungsplan_SOURCES = helper.cpp main.cpp ratenplan.ui ratenplanwidget.cpp \ |
#>- tilgrech.cpp tilgungsplan.cpp tilgungsplanwidget.cpp tilgungsplanwidgetbase.ui \ |
#>- ziaendwidget.cpp zinssatzaenderung.ui |
#>+ 3 |
tilgungsplan_SOURCES=helper.cpp main.cpp ratenplanwidget.cpp \ |
tilgrech.cpp tilgungsplan.cpp tilgungsplanwidget.cpp \ |
ziaendwidget.cpp ratenplan.cpp tilgungsplanwidgetbase.cpp zinssatzaenderung.cpp |
tilgungsplan_LDFLAGS = $(KDE_RPATH) $(all_libraries) |
tilgungsplan_LDFLAGS = $(KDE_RPATH) $(all_libraries) -lkio |
tilgungsplan_LDADD = $(LIB_KDEUI) |
# this is where the desktop file will go |
469,6 → 473,7 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/helper.Po@am__quote@ |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ratenplanwidget.Po@am__quote@ |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilgrech.Po@am__quote@ |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilgungsplan.Po@am__quote@ |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilgungsplanwidget.Po@am__quote@ |
728,6 → 733,13 |
.NOEXPORT: |
#>+ 3 |
ratenplanwidget.moc: $(srcdir)/ratenplanwidget.h |
$(MOC) $(srcdir)/ratenplanwidget.h -o ratenplanwidget.moc |
#>+ 2 |
mocs: ratenplanwidget.moc |
#>+ 3 |
ziaendwidget.moc: $(srcdir)/ziaendwidget.h |
$(MOC) $(srcdir)/ziaendwidget.h -o ziaendwidget.moc |
750,14 → 762,15 |
#>+ 3 |
clean-metasources: |
-rm -f ziaendwidget.moc tilgungsplanwidget.moc tilgungsplan.moc |
-rm -f ratenplanwidget.moc ziaendwidget.moc tilgungsplanwidget.moc tilgungsplan.moc |
#>+ 2 |
KDE_DIST=350px-CO1EURO_50.JPG Makefile.in down.png helper.h tilgungsplan.desktop tilgungsplan.lsm zinssatzaenderung.ui tilgungsplanwidgetbase.ui tprech.h tilgungsplanui.rc tilgplan.h hi16-app-tilgungsplan.png up.png Makefile.am tprech.cpp hi32-app-tilgungsplan.png |
KDE_DIST=350px-CO1EURO_50.JPG blitz.gif Makefile.in blitz.png down.png helper.h tilgungsplan.desktop tilgungsplan.lsm zinssatzaenderung.ui ratenplan.ui tilgungsplanwidgetbase.ui tprech.h tilgungsplanui.rc tilgplan.h hi16-app-tilgungsplan.png up.png ratenplanwidget.h Makefile.am tprech.cpp hi32-app-tilgungsplan.png |
#>+ 5 |
#>+ 6 |
clean-ui: |
-rm -f \ |
ratenplan.cpp ratenplan.h ratenplan.moc \ |
tilgungsplanwidgetbase.cpp tilgungsplanwidgetbase.h tilgungsplanwidgetbase.moc \ |
zinssatzaenderung.cpp zinssatzaenderung.h zinssatzaenderung.moc |
814,11 → 827,11 |
#>+ 11 |
tilgungsplan.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/helper.cpp $(srcdir)/main.cpp $(srcdir)/tilgrech.cpp $(srcdir)/tilgungsplan.cpp $(srcdir)/tilgungsplanwidget.cpp $(srcdir)/ziaendwidget.cpp tilgungsplanwidgetbase.cpp zinssatzaenderung.cpp tilgungsplanwidget.moc ziaendwidget.moc zinssatzaenderung.moc tilgungsplan.moc tilgungsplanwidgetbase.moc |
tilgungsplan.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/helper.cpp $(srcdir)/main.cpp $(srcdir)/ratenplanwidget.cpp $(srcdir)/tilgrech.cpp $(srcdir)/tilgungsplan.cpp $(srcdir)/tilgungsplanwidget.cpp $(srcdir)/ziaendwidget.cpp ratenplan.cpp tilgungsplanwidgetbase.cpp zinssatzaenderung.cpp tilgungsplanwidget.moc ziaendwidget.moc ratenplanwidget.moc zinssatzaenderung.moc tilgungsplan.moc ratenplan.moc tilgungsplanwidgetbase.moc |
@echo 'creating tilgungsplan.all_cpp.cpp ...'; \ |
rm -f tilgungsplan.all_cpp.files tilgungsplan.all_cpp.final; \ |
echo "#define KDE_USE_FINAL 1" >> tilgungsplan.all_cpp.final; \ |
for file in helper.cpp main.cpp tilgrech.cpp tilgungsplan.cpp tilgungsplanwidget.cpp ziaendwidget.cpp tilgungsplanwidgetbase.cpp zinssatzaenderung.cpp ; do \ |
for file in helper.cpp main.cpp ratenplanwidget.cpp tilgrech.cpp tilgungsplan.cpp tilgungsplanwidget.cpp ziaendwidget.cpp ratenplan.cpp tilgungsplanwidgetbase.cpp zinssatzaenderung.cpp ; do \ |
echo "#include \"$$file\"" >> tilgungsplan.all_cpp.files; \ |
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> tilgungsplan.all_cpp.final; \ |
done; \ |
849,23 → 862,26 |
kde-rpo-clean: |
-rm -f *.rpo |
#>+ 15 |
$(srcdir)/helper.cpp: tilgungsplanwidgetbase.h zinssatzaenderung.h |
$(srcdir)/main.cpp: tilgungsplanwidgetbase.h zinssatzaenderung.h |
#>+ 18 |
ratenplanwidget.lo: ratenplanwidget.moc |
$(srcdir)/helper.cpp: ratenplan.h tilgungsplanwidgetbase.h zinssatzaenderung.h |
ratenplanwidget.o: ratenplanwidget.moc |
$(srcdir)/main.cpp: ratenplan.h tilgungsplanwidgetbase.h zinssatzaenderung.h |
tilgungsplanwidget.lo: tilgungsplanwidget.moc |
$(srcdir)/tilgungsplanwidget.cpp: tilgungsplanwidgetbase.h zinssatzaenderung.h |
$(srcdir)/tilgungsplanwidget.cpp: ratenplan.h tilgungsplanwidgetbase.h zinssatzaenderung.h |
$(srcdir)/tilgrech.cpp: ratenplan.h tilgungsplanwidgetbase.h zinssatzaenderung.h |
tilgungsplanwidget.o: tilgungsplanwidget.moc |
$(srcdir)/tilgrech.cpp: tilgungsplanwidgetbase.h zinssatzaenderung.h |
nmcheck: |
nmcheck-am: nmcheck |
$(srcdir)/tilgungsplan.cpp: tilgungsplanwidgetbase.h zinssatzaenderung.h |
$(srcdir)/tilgungsplan.cpp: ratenplan.h tilgungsplanwidgetbase.h zinssatzaenderung.h |
tilgungsplan.lo: tilgungsplan.moc |
ziaendwidget.o: ziaendwidget.moc |
ziaendwidget.lo: ziaendwidget.moc |
$(srcdir)/ziaendwidget.cpp: tilgungsplanwidgetbase.h zinssatzaenderung.h |
$(srcdir)/ratenplanwidget.cpp: ratenplan.h tilgungsplanwidgetbase.h zinssatzaenderung.h |
$(srcdir)/ziaendwidget.cpp: ratenplan.h tilgungsplanwidgetbase.h zinssatzaenderung.h |
tilgungsplan.o: tilgungsplan.moc |
#>+ 30 |
#>+ 45 |
zinssatzaenderung.cpp: $(srcdir)/zinssatzaenderung.ui zinssatzaenderung.h zinssatzaenderung.moc |
rm -f zinssatzaenderung.cpp |
echo '#include <kdialog.h>' > zinssatzaenderung.cpp |
895,3 → 911,18 |
$(UIC) $(srcdir)/tilgungsplanwidgetbase.ui | $(PERL) -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> tilgungsplanwidgetbase.h ; |
tilgungsplanwidgetbase.moc: tilgungsplanwidgetbase.h |
$(MOC) tilgungsplanwidgetbase.h -o tilgungsplanwidgetbase.moc |
ratenplan.cpp: $(srcdir)/ratenplan.ui ratenplan.h ratenplan.moc |
rm -f ratenplan.cpp |
echo '#include <kdialog.h>' > ratenplan.cpp |
echo '#include <klocale.h>' >> ratenplan.cpp |
$(UIC) -tr ${UIC_TR} -i ratenplan.h $(srcdir)/ratenplan.ui > ratenplan.cpp.temp ; ret=$$?; \ |
$(PERL) -pe "s,${UIC_TR}( \"\" ),QString::null,g" ratenplan.cpp.temp | $(PERL) -pe "s,${UIC_TR}( \"\"\, \"\" ),QString::null,g" | $(PERL) -pe "s,image([0-9][0-9]*)_data,img\$$1_ratenplan,g" | $(PERL) -pe "s,: QWizard\(,: KWizard(,g" >> ratenplan.cpp ;\ |
rm -f ratenplan.cpp.temp ;\ |
if test "$$ret" = 0; then echo '#include "ratenplan.moc"' >> ratenplan.cpp; else rm -f ratenplan.cpp ; exit $$ret ; fi |
ratenplan.h: $(srcdir)/ratenplan.ui |
rm -rf ratenplan.h; |
$(UIC) $(srcdir)/ratenplan.ui | $(PERL) -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> ratenplan.h ; |
ratenplan.moc: ratenplan.h |
$(MOC) ratenplan.h -o ratenplan.moc |
/tilgungsplan/trunk/src/tilgungsplanwidgetbase.ui |
---|
46,6 → 46,9 |
<property name="icon"> |
<pixmap>image0</pixmap> |
</property> |
<property name="usesBigPixmaps"> |
<bool>false</bool> |
</property> |
<widget class="QGroupBox"> |
<property name="name"> |
<cstring>groupBox1</cstring> |
93,26 → 96,6 |
<string>Betrag</string> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_Auszahlung</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>50</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_Betrag</cstring> |
138,6 → 121,26 |
<string>Kreditbetrag</string> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_Auszahlung</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>50</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
</widget> |
<widget class="QGroupBox"> |
<property name="name"> |
170,6 → 173,22 |
<string>Rythmus</string> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel7_2</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>10</x> |
<y>50</y> |
<width>80</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string>1. Abschluss</string> |
</property> |
</widget> |
<widget class="QComboBox"> |
<item> |
<property name="text"> |
258,22 → 277,6 |
</date> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel7_2</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>10</x> |
<y>50</y> |
<width>80</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string>1. Abschluss</string> |
</property> |
</widget> |
</widget> |
<widget class="QGroupBox"> |
<property name="name"> |
386,26 → 389,6 |
<string>EUR</string> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_RaBis</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>430</x> |
<y>110</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel1_4</cstring> |
438,135 → 421,6 |
<string>Ratenart</string> |
</property> |
</widget> |
<widget class="QComboBox"> |
<item> |
<property name="text"> |
<string>Kapitalraten</string> |
</property> |
</item> |
<item> |
<property name="text"> |
<string>Pauschalraten</string> |
</property> |
</item> |
<property name="name"> |
<cstring>comboBox_Ratart</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>430</x> |
<y>20</y> |
<width>220</width> |
<height>23</height> |
</rect> |
</property> |
</widget> |
<widget class="QComboBox"> |
<item> |
<property name="text"> |
<string>Tagesvaluta</string> |
</property> |
</item> |
<item> |
<property name="text"> |
<string>Ende des Monats</string> |
</property> |
</item> |
<item> |
<property name="text"> |
<string>Ende der Abschlussperiode</string> |
</property> |
</item> |
<property name="name"> |
<cstring>comboBox_valuta</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>430</x> |
<y>140</y> |
<width>220</width> |
<height>23</height> |
</rect> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_RaVon</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>110</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_Endfael</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>83</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_Rate</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>50</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>1e+07</number> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Bei "Ratenvorgabe" die Höhe der Rate</string> |
</property> |
</widget> |
<widget class="KIntNumInput"> |
<property name="name"> |
<cstring>kIntNumInput_AnzRaten</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>20</y> |
<width>107</width> |
<height>25</height> |
</rect> |
</property> |
<property name="minValue"> |
<number>0</number> |
</property> |
<property name="maxValue"> |
<number>600</number> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel18</cstring> |
956,39 → 810,117 |
<string><font size="-1">Feb</font></string> |
</property> |
</widget> |
<widget class="QCheckBox"> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>checkBox_RaJan</cstring> |
<cstring>textLabel1_3_12</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>10</x> |
<y>20</y> |
<x>230</x> |
<y>2</y> |
<width>20</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string></string> |
<string><font size="-1">Dez</font></string> |
</property> |
</widget> |
<widget class="QLabel"> |
<widget class="QCheckBox"> |
<property name="name"> |
<cstring>textLabel1_3_12</cstring> |
<cstring>checkBox_RaJan</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>230</x> |
<y>2</y> |
<x>10</x> |
<y>20</y> |
<width>20</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string><font size="-1">Dez</font></string> |
<string></string> |
</property> |
</widget> |
</widget> |
<widget class="KIntNumInput"> |
<property name="name"> |
<cstring>kIntNumInput_AnzRaten</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>20</y> |
<width>107</width> |
<height>25</height> |
</rect> |
</property> |
<property name="minValue"> |
<number>0</number> |
</property> |
<property name="maxValue"> |
<number>600</number> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_Rate</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>50</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>1e+07</number> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Bei "Ratenvorgabe" die Höhe der Rate</string> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_Endfael</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>83</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_RaVon</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>110</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="QCheckBox"> |
<property name="name"> |
<cstring>checkBox_Rate</cstring> |
1008,6 → 940,77 |
<string>Alt+V</string> |
</property> |
</widget> |
<widget class="QComboBox"> |
<item> |
<property name="text"> |
<string>Kapitalraten</string> |
</property> |
</item> |
<item> |
<property name="text"> |
<string>Pauschalraten</string> |
</property> |
</item> |
<property name="name"> |
<cstring>comboBox_Ratart</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>430</x> |
<y>20</y> |
<width>220</width> |
<height>23</height> |
</rect> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_RaBis</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>430</x> |
<y>110</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="QComboBox"> |
<item> |
<property name="text"> |
<string>Tagesvaluta</string> |
</property> |
</item> |
<item> |
<property name="text"> |
<string>Ende des Monats</string> |
</property> |
</item> |
<item> |
<property name="text"> |
<string>Ende der Abschlussperiode</string> |
</property> |
</item> |
<property name="name"> |
<cstring>comboBox_valuta</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>430</x> |
<y>140</y> |
<width>220</width> |
<height>23</height> |
</rect> |
</property> |
</widget> |
</widget> |
<widget class="QGroupBox"> |
<property name="name"> |
1056,6 → 1059,38 |
<string>Verzinsungsart</string> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel2</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>10</x> |
<y>80</y> |
<width>65</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string>Fixspesen</string> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel5</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>240</x> |
<y>80</y> |
<width>30</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string>EUR</string> |
</property> |
</widget> |
<widget class="QComboBox"> |
<item> |
<property name="text"> |
1122,38 → 1157,6 |
</rect> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel2</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>10</x> |
<y>80</y> |
<width>65</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string>Fixspesen</string> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel5</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>240</x> |
<y>80</y> |
<width>30</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string>EUR</string> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_Fixspesen</cstring> |
1672,22 → 1675,6 |
<string>%</string> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_AnnZuschuss</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>500</x> |
<y>80</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>1e+07</number> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel6_3_2</cstring> |
1720,25 → 1707,6 |
<string>EUR</string> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_Zinssatz</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>20</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>100</number> |
</property> |
<property name="precision"> |
<number>3</number> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel3_3</cstring> |
1787,47 → 1755,6 |
<string></string> |
</property> |
</widget> |
<widget class="QRadioButton"> |
<property name="name"> |
<cstring>radioButton_ZuschP</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>390</x> |
<y>20</y> |
<width>16</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string></string> |
</property> |
<property name="checked"> |
<bool>true</bool> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_ZiZuschuss</cstring> |
</property> |
<property name="enabled"> |
<bool>true</bool> |
</property> |
<property name="geometry"> |
<rect> |
<x>500</x> |
<y>20</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>100</number> |
</property> |
<property name="precision"> |
<number>3</number> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel5_2</cstring> |
1844,26 → 1771,6 |
<string>Ann.Zuschuss</string> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_ZiGiltAb</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>80</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="QLabel"> |
<property name="name"> |
<cstring>textLabel11</cstring> |
1888,12 → 1795,12 |
<rect> |
<x>10</x> |
<y>50</y> |
<width>140</width> |
<width>250</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string>&Zinssatzänderung</string> |
<string>&Zinssatzänderung berücksichtigen</string> |
</property> |
<property name="accel"> |
<string>Alt+Z</string> |
1918,6 → 1825,41 |
<string>Alt+C</string> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_ZuschFix</cstring> |
</property> |
<property name="enabled"> |
<bool>false</bool> |
</property> |
<property name="geometry"> |
<rect> |
<x>500</x> |
<y>50</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>2e+07</number> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_AnnZuschuss</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>500</x> |
<y>80</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>1e+07</number> |
</property> |
</widget> |
<widget class="QCheckBox"> |
<property name="name"> |
<cstring>checkBox_Runden</cstring> |
1937,24 → 1879,88 |
<string>Alt+U</string> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<widget class="QRadioButton"> |
<property name="name"> |
<cstring>kDoubleNumInput_ZuschFix</cstring> |
<cstring>radioButton_ZuschP</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>390</x> |
<y>20</y> |
<width>16</width> |
<height>20</height> |
</rect> |
</property> |
<property name="text"> |
<string></string> |
</property> |
<property name="checked"> |
<bool>true</bool> |
</property> |
</widget> |
<widget class="KDateWidget"> |
<property name="name"> |
<cstring>kDateWidget_ZiGiltAb</cstring> |
</property> |
<property name="enabled"> |
<bool>false</bool> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>80</y> |
<width>216</width> |
<height>23</height> |
</rect> |
</property> |
<property name="date"> |
<date> |
<year>2008</year> |
<month>1</month> |
<day>1</day> |
</date> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_Zinssatz</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>110</x> |
<y>20</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>100</number> |
</property> |
<property name="precision"> |
<number>3</number> |
</property> |
</widget> |
<widget class="KDoubleNumInput"> |
<property name="name"> |
<cstring>kDoubleNumInput_ZiZuschuss</cstring> |
</property> |
<property name="enabled"> |
<bool>true</bool> |
</property> |
<property name="geometry"> |
<rect> |
<x>500</x> |
<y>50</y> |
<y>20</y> |
<width>120</width> |
<height>25</height> |
</rect> |
</property> |
<property name="maxValue"> |
<number>2e+07</number> |
<number>100</number> |
</property> |
<property name="precision"> |
<number>3</number> |
</property> |
</widget> |
</widget> |
</widget> |
2005,6 → 2011,8 |
<action name="fileOpenAction"/> |
<action name="fileSaveAction"/> |
<action name="filePrintAction"/> |
<separator/> |
<action name="menuSummenAction"/> |
</toolbar> |
</toolbars> |
<actions> |
2235,15 → 2243,21 |
<property name="name"> |
<cstring>menuSummenAction</cstring> |
</property> |
<property name="iconSet"> |
<iconset>image10</iconset> |
</property> |
<property name="text"> |
<string>Summen</string> |
</property> |
<property name="menuText"> |
<string>Summen</string> |
<string>&Summen</string> |
</property> |
<property name="toolTip"> |
<string>Berechnen der Summen</string> |
<string>Summen</string> |
</property> |
<property name="accel"> |
<string>Alt+K</string> |
</property> |
</action> |
<action> |
<property name="name"> |
2305,6 → 2319,9 |
<image name="image9"> |
<data format="PNG" length="270">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000000d549444154388dc5955d0a84300c8427e2a90a9e6c8b0f4b3dd982d7ca3e58d7fe4cd0ba5d7640024df265da0a057e2439c9eb8d9eaa8841a0c9aad8c82ab32f9c425be1e30e0dcf00c00308f0b3a7a07410a9d7142e00b42c5a5fab696b979b1c837fc0c316b6e4165b64f78d716359919bdc4570de47c04732dd5e5bcc35f0c97762ae787936dccf7513577e79f48c4b27aa0f1327b240f5117fcbe348aa33b6e0224b054d0746b8025e2e3b3e73cde0dd1c97f02e8ed9d0af1db381224bdf33eee698a934a0f617b45540d00bcf4ca08fc0dff406e325c1981bc418760000000049454e44ae426082</data> |
</image> |
<image name="image10"> |
<data format="PNG" length="845">89504e470d0a1a0a0000000d4948445200000020000000200806000000737a7af400000314494441545885bd974b48547114c67fe42832cc42472d1fa1136698a96526e1aa46dab4685110516160e022da04435c6ba6c6275a48149585954659514af69052a4087a4f63a369e16bf291d30d0aae453ea0c5b4b84c8999de87f8ad2e9cf3ffcef73ff7f29d734107ae5ea2a2c345dfd993e46be530683de828c094b9969d31d1c49bcda469e559a4f5e0e228b6c644130fd0d3cbc90517b03a4d6e7b9b87d6890906b5f26842a19d7849c42f89f84f9f204f0f97a60ea4ace43080ef3383233e6ee811a01a8e024cbdef1025117f5d2d957af954772032822d51514403783f523d5b6e918364adc2fe8b678f792589f85beef360a6b860635159215977ebb9fec1c3d05c7caa7cc069c79294480640bf97c6e9f163a558d767e15c9dce0680db7770ccab80f4548e868410227e6178ff012e00083642e362d99eb391e2b8582c81dcb1317e0e0c7169de04083642d356b119a0bd83464701a68478f6ad49277779e2bf4ed8ddcbcbd20abecc9b80b85876043ebee0608c797b18308713f9a7600f6d233ede6eca910dcaf586234a78150b5893fe77e0048a00b8dc3cf4b4532e8df27add5ace80ec0fdf7fe051ca3d27ca0ac90a389f24e2f77919abbf46758953fe2001041bc640fc42150795722beac08a24f9c6df7f30fac64dfd876e2a9d25f44ecd596691732627991c1ae6aa52018ad0e1a2ef7235c57681b099e2820dc3d347bc9044fccdf76852c3ada8030d8d649794f3ed7ff10833d6d414b2013c1d94ab11a0c88a672b0e9098c86e808141ba47476953234037ec02613e2f639288ffe2390ea93daf691c0b368c81674b02f94623c6f171c68786657754034d3be1ca640e1739a81b9fa03f3383bd002e378d73bdaa99a0a903c1c11873acd44498b12eb3c823b7a74ffded41c7569c9a42766c0cd701fabd744a122f9d762c0603e1478a94bba066010081596032119ebb8b9ea0200c371bb0aae1d0252080e8252c05a8bdc2b6c252fae78373563c69e1c9d4d9f0f513bff46ec7aae07e4ed7540155a7d8b760c5a70ba8abe1b81e2ecd7f4620ef029def39aa874313dccfe96a6da259b011bae0c5016ed5717eaa1debc16f303318ffbc0c41d70000000049454e44ae426082</data> |
</image> |
</images> |
<connections> |
<connection> |
2735,17 → 2752,17 |
</slots> |
<layoutdefaults spacing="6" margin="11"/> |
<includehints> |
<includehint>kdatewidget.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
2752,9 → 2769,9 |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
</includehints> |
/tilgungsplan/trunk/src/zinssatzaenderung.ui |
---|
250,6 → 250,84 |
</property> |
</widget> |
</widget> |
<widget class="KPushButton"> |
<property name="name"> |
<cstring>kPushButton_Remove</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>260</x> |
<y>160</y> |
<width>100</width> |
<height>30</height> |
</rect> |
</property> |
<property name="text"> |
<string>Entfernen</string> |
</property> |
<property name="accel"> |
<string>Alt+N</string> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Markierte Zeile der Tabelle entfernen</string> |
</property> |
<property name="whatsThis" stdset="0"> |
<string>Button zum entfernen der markierten Zeile aus der Tabelle.</string> |
</property> |
</widget> |
<widget class="KPushButton"> |
<property name="name"> |
<cstring>kPushButton_Cancel</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>260</x> |
<y>360</y> |
<width>130</width> |
<height>30</height> |
</rect> |
</property> |
<property name="text"> |
<string>Schliessen</string> |
</property> |
<property name="accel"> |
<string>Alt+C</string> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Schliesst den Dialog. Alle Eingaben werden verworfen!</string> |
</property> |
<property name="whatsThis" stdset="0"> |
<string>Der Button schliesst die Dialogbox und verwirft alle durchgeführten Änderungen.</string> |
</property> |
</widget> |
<widget class="KPushButton"> |
<property name="name"> |
<cstring>kPushButton_Save</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>50</x> |
<y>360</y> |
<width>130</width> |
<height>30</height> |
</rect> |
</property> |
<property name="text"> |
<string>Speichern</string> |
</property> |
<property name="accel"> |
<string>Alt+S</string> |
</property> |
<property name="default"> |
<bool>true</bool> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Speichert den Inhalt der Tabelle</string> |
</property> |
<property name="whatsThis" stdset="0"> |
<string>Der Button speichert den Inhalt der Tabelle und schliesst die Dialogbox</string> |
</property> |
</widget> |
<widget class="KListView"> |
<column> |
<property name="text"> |
331,6 → 409,9 |
<height>0</height> |
</size> |
</property> |
<property name="allColumnsShowFocus"> |
<bool>true</bool> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Liste der Zinssatz-/Ratenänderungen</string> |
</property> |
352,7 → 433,7 |
<comment>Einfügen</comment> |
</property> |
<property name="accel"> |
<string>Alt+E</string> |
<string></string> |
</property> |
<property name="stdItem" stdset="0"> |
<number>0</number> |
364,84 → 445,6 |
<string>Button zum Hinzufügen des Inhalts der Eingabezeilen zur Tabelle unten</string> |
</property> |
</widget> |
<widget class="KPushButton"> |
<property name="name"> |
<cstring>kPushButton_Remove</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>260</x> |
<y>160</y> |
<width>100</width> |
<height>30</height> |
</rect> |
</property> |
<property name="text"> |
<string>Entfernen</string> |
</property> |
<property name="accel"> |
<string>Alt+N</string> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Markierte Zeile der Tabelle entfernen</string> |
</property> |
<property name="whatsThis" stdset="0"> |
<string>Button zum entfernen der markierten Zeile aus der Tabelle.</string> |
</property> |
</widget> |
<widget class="KPushButton"> |
<property name="name"> |
<cstring>kPushButton_Cancel</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>260</x> |
<y>360</y> |
<width>130</width> |
<height>30</height> |
</rect> |
</property> |
<property name="text"> |
<string>Schliessen</string> |
</property> |
<property name="accel"> |
<string>Alt+C</string> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Schliesst den Dialog. Alle Eingaben werden verworfen!</string> |
</property> |
<property name="whatsThis" stdset="0"> |
<string>Der Button schliesst die Dialogbox und verwirft alle durchgeführten Änderungen.</string> |
</property> |
</widget> |
<widget class="KPushButton"> |
<property name="name"> |
<cstring>kPushButton_Save</cstring> |
</property> |
<property name="geometry"> |
<rect> |
<x>50</x> |
<y>360</y> |
<width>130</width> |
<height>30</height> |
</rect> |
</property> |
<property name="text"> |
<string>Speichern</string> |
</property> |
<property name="accel"> |
<string>Alt+S</string> |
</property> |
<property name="default"> |
<bool>true</bool> |
</property> |
<property name="toolTip" stdset="0"> |
<string>Speichert den Inhalt der Tabelle</string> |
</property> |
<property name="whatsThis" stdset="0"> |
<string>Der Button speichert den Inhalt der Tabelle und schliesst die Dialogbox</string> |
</property> |
</widget> |
</widget> |
<connections> |
<connection> |
509,6 → 512,9 |
<tabstop>kDoubleNumInput_Zinssatz</tabstop> |
<tabstop>kDoubleNumInput_Rate</tabstop> |
<tabstop>checkBox_Rate</tabstop> |
<tabstop>checkBox_KalkRate</tabstop> |
<tabstop>kPushButton_Insert</tabstop> |
<tabstop>kPushButton_Remove</tabstop> |
<tabstop>kListView_Table</tabstop> |
<tabstop>kPushButton_Save</tabstop> |
<tabstop>kPushButton_Cancel</tabstop> |
533,10 → 539,10 |
<includehint>knuminput.h</includehint> |
<includehint>knuminput.h</includehint> |
<includehint>kdatewidget.h</includehint> |
<includehint>klistview.h</includehint> |
<includehint>kpushbutton.h</includehint> |
<includehint>kpushbutton.h</includehint> |
<includehint>kpushbutton.h</includehint> |
<includehint>klistview.h</includehint> |
<includehint>kpushbutton.h</includehint> |
</includehints> |
</UI> |
/tilgungsplan/trunk/src/tilgungsplanwidget.cpp |
---|
17,10 → 17,6 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
***************************************************************************/ |
#ifndef _ZINSAENDERUNG |
#define _ZINSAENDERUNG |
#endif |
#include <klineedit.h> |
#include <kmessagebox.h> |
#include <klocale.h> |
27,64 → 23,59 |
#include <kdatewidget.h> |
#include <kcombobox.h> |
#include <knuminput.h> |
#include <kfiledialog.h> |
#include <qcheckbox.h> |
#include <qradiobutton.h> |
#include <qdir.h> |
#include <qfile.h> |
#include <stdlib.h> |
#include <iostream.h> |
//#include <iostream.h> |
#include "helper.h" |
#include "tilgungsplanwidget.h" |
#include "ziaendwidget.h" |
#include "ratenplanwidget.h" |
tilgungsplanWidget::tilgungsplanWidget ( QWidget* parent, const char* name, WFlags fl ) |
: tilgungsplanWidgetBase ( parent,name,fl ) |
{ |
QDate dt; |
dirty = FALSE; |
mamma = parent; // Parent window needed to exit application |
// Maske mit sinnvollen Parametern versorgen |
comboBox_tageber->setCurrentItem(3); |
comboBox_Ratart->setCurrentItem(1); |
comboBox_Abschl->setCurrentItem(10); |
kDoubleNumInput_Zinssatz->setValue(5.5); |
kDateWidget_Auszahlung->setDate(QDate::currentDate()); |
// Datum: Der 5. des nächsten Monats |
dt = QDate::currentDate(); |
dt = dt.addMonths(1); |
dt.setYMD(dt.year(), dt.month(), 5); |
kDateWidget_RaVon->setDate(dt); |
dt = dt.addYears(1); |
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); |
#ifndef _ZINSAENDERUNG |
checkBox_ZiChange->setProperty("enabled", QVariant("FALSE")); |
#endif |
// Zuletzt verwendete Maskenparameter aus der Datei holen, sofern |
// es diese Datei bereits gibt. |
readValues(); |
} |
tilgungsplanWidget::~tilgungsplanWidget() |
{} |
{ |
QString hdir = QDir::homeDirPath (); |
QFile tmpFile; |
/*$SPECIALIZATION$*/ |
void tilgungsplanWidget::mnCalcTPSumSlot() |
if (!dirty) |
return; |
// Zuletzt verwendete Maskenparameter in eine Datei schreiben. |
hdir.append("/.tilgpars.dat"); |
tmpFile.setName(hdir); |
if (tmpFile.open(IO_ReadWrite | IO_Truncate) == FALSE) |
{ |
KMessageBox::error(0, QString("Could not open file for writing: %1").arg(tmpFile.errorString())); |
return; |
} |
moveValues(); |
write (tmpFile.handle(), &TpPars, sizeof(TPPARS)); |
tmpFile.close(); |
} |
void tilgungsplanWidget::moveValues() |
{ |
QDate dt, dt1; |
QString str, zia; |
TRech *tp; |
int ret, day1, day2, mon1, mon2, year1, year2; |
char hv0[255]; |
QDate dt; |
int ret; |
memset(&TpPars, 0, sizeof(TPPARS)); |
// Zuweisen der Inhalte der Widgets zur internen Parameterstruktur. |
TpPars.effformel = 0.0; |
TpPars.gewicht = 0.0; |
127,7 → 118,7 |
case 10: TpPars.abschlry = 52; break; |
} |
TpPars.zuschver = 0; // Zuschuss Verrechnung ?? |
TpPars.zuschver = 0; // wird derzeit nicht verwendet! |
TpPars.spesen = kDoubleNumInput_Fixspesen->value(); |
TpPars.rahmen = kDoubleNumInput_Betrag->value(); |
TpPars.kapital = 0.0; |
158,12 → 149,181 |
#else |
TpPars.ziaend = FALSE; |
#endif |
TpPars.effekt = TRUE; |
TpPars.effekt = FALSE; |
TpPars.fixrate = checkBox_Rate->isChecked(); |
} |
void tilgungsplanWidget::readValues(const char *fname, BOOL home) |
{ |
QDate dt; |
QString hdir = QDir::homeDirPath (); |
QFile tmpFile; |
int fd, day, mon, year; |
// Zuletzt verwendete Maskenparameter aus der Datei holen, sofern |
// es diese Datei bereits gibt. |
if (home) |
{ |
hdir = QDir::homeDirPath(); |
hdir.append(fname); |
} |
else |
hdir = QString(fname); |
tmpFile.setName(hdir); |
if (tmpFile.open(IO_ReadOnly) == FALSE) |
{ |
// Maske mit sinnvollen Parametern versorgen |
comboBox_tageber->setCurrentItem(3); |
comboBox_Ratart->setCurrentItem(1); |
comboBox_Abschl->setCurrentItem(10); |
kDoubleNumInput_Zinssatz->setValue(5.5); |
kDateWidget_Auszahlung->setDate(QDate::currentDate()); |
// Datum: Der 5. des nächsten Monats |
dt = QDate::currentDate(); |
dt = dt.addMonths(1); |
dt.setYMD(dt.year(), dt.month(), 5); |
kDateWidget_RaVon->setDate(dt); |
dt = dt.addYears(1); |
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); |
#ifndef _ZINSAENDERUNG |
checkBox_ZiChange->setProperty("enabled", QVariant("FALSE")); |
#endif |
return; |
} |
fd = tmpFile.handle(); |
read (fd, &TpPars, sizeof(TPPARS)); |
tmpFile.close(); |
kDoubleNumInput_Betrag->setValue(TpPars.rahmen); |
date_int(&day, &mon, &year, TpPars.ragab); |
dt.setYMD(year, mon, day); |
kDateWidget_Auszahlung->setDate(dt); |
comboBox_tageber->setCurrentItem(TpPars.tageb-1); |
switch (TpPars.verzart) |
{ |
case 0: comboBox_verzart->setCurrentItem(0); break; |
case 3: comboBox_verzart->setCurrentItem(1); break; |
case 7: comboBox_verzart->setCurrentItem(2); break; |
case 4: comboBox_verzart->setCurrentItem(3); break; |
} |
kDoubleNumInput_Fixspesen->setValue(TpPars.spesen); |
kDoubleNumInput_Zinssatz->setValue(TpPars.zssoll); |
#ifdef _ZINSAENDERUNG |
checkBox_ZiChange->setChecked(TpPars.ziaend); |
#else |
checkBox_ZiChange->setProperty("enabled", QVariant("FALSE")); |
#endif |
date_int(&day, &mon, &year, TpPars.ragab); |
dt.setYMD(year, mon, day); |
kDateWidget_ZiGiltAb->setDate(dt); // Dummy! |
checkBox_RechUltimo->setChecked(TpPars.ultimo); |
kDoubleNumInput_ZiZuschuss->setValue(TpPars.zuschprz); |
kDoubleNumInput_ZuschFix->setValue(TpPars.zuschfix); |
if (TpPars.zuschprz > 0.0) |
{ |
radioButton_ZuschP->setChecked(TRUE); |
radioButton_ZuschF->setChecked(FALSE); |
} |
else |
{ |
radioButton_ZuschP->setChecked(FALSE); |
radioButton_ZuschF->setChecked(TRUE); |
} |
kDoubleNumInput_AnnZuschuss->setValue(TpPars.zuschannu); |
checkBox_Runden->setChecked(TpPars.runden); |
kIntNumInput_AnzRaten->setValue(TpPars.anzraten); |
kDoubleNumInput_Rate->setValue(TpPars.rate); |
date_int(&day, &mon, &year, TpPars.endfaell); |
dt.setYMD(year, mon, day); |
kDateWidget_Endfael->setDate(dt); |
date_int(&day, &mon, &year, TpPars.dvon); |
dt.setYMD(year, mon, day); |
kDateWidget_RaVon->setDate(dt); |
checkBox_Rate->setChecked(TpPars.fixrate); |
comboBox_Ratart->setCurrentItem(TpPars.ratenart); |
checkBox_RaJan->setChecked(TpPars.raplan[0]); |
checkBox_RaFeb->setChecked(TpPars.raplan[1]); |
checkBox_RaMar->setChecked(TpPars.raplan[2]); |
checkBox_RaApr->setChecked(TpPars.raplan[3]); |
checkBox_RaMai->setChecked(TpPars.raplan[4]); |
checkBox_RaJun->setChecked(TpPars.raplan[5]); |
checkBox_RaJul->setChecked(TpPars.raplan[6]); |
checkBox_RaAug->setChecked(TpPars.raplan[7]); |
checkBox_RaSep->setChecked(TpPars.raplan[8]); |
checkBox_RaOkt->setChecked(TpPars.raplan[9]); |
checkBox_RaNov->setChecked(TpPars.raplan[10]); |
checkBox_RaDez->setChecked(TpPars.raplan[11]); |
date_int(&day, &mon, &year, TpPars.dbis); |
dt.setYMD(year, mon, day); |
kDateWidget_RaBis->setDate(dt); |
comboBox_valuta->setCurrentItem(TpPars.valuta); |
switch (TpPars.abschlry) |
{ |
case 0: comboBox_Abschl->setCurrentItem(0); break; |
case 1: comboBox_Abschl->setCurrentItem(1); break; |
case 3: comboBox_Abschl->setCurrentItem(2); break; |
case 6: comboBox_Abschl->setCurrentItem(3); break; |
case 12: comboBox_Abschl->setCurrentItem(4); break; |
case 41: comboBox_Abschl->setCurrentItem(5); break; |
case 43: comboBox_Abschl->setCurrentItem(6); break; |
case 46: comboBox_Abschl->setCurrentItem(7); break; |
case 47: comboBox_Abschl->setCurrentItem(8); break; |
case 48: comboBox_Abschl->setCurrentItem(9); break; |
case 52: comboBox_Abschl->setCurrentItem(10); break; |
} |
date_int (&day, &mon, &year, TpPars.abschl); |
dt.setYMD(year, mon, day); |
kDateWidget_Abschluss->setDate(dt); |
} |
/*$SPECIALIZATION$*/ |
void tilgungsplanWidget::mnCalcTPSumSlot() |
{ |
QDate dt, dt1; |
QString str, zia; |
TRech *tp; |
int ret, day1, day2, mon1, mon2, year1, year2; |
char hv0[255]; |
double ezins, rate; |
TPPARS pars; |
// Zuweisen der Inhalte der Widgets zur internen Parameterstruktur. |
moveValues(); |
if (TpPars.dbis > TpPars.endfaell) |
TpPars.endfaell = TpPars.dbis; |
if (TpPars.fixrate) |
{ |
TpPars.endfaell = 0L; |
TpPars.dbis = 0L; |
} |
// Parameter für spätere Effektivzinsberechnung wegspeichern |
memmove (&pars, &TpPars, sizeof(TPPARS)); |
// Berechnung anstossen |
tp = new TRech (&TpPars); |
211,13 → 371,18 |
case 16: str = QString::fromUtf8("Die vorgegebene Rate darf nicht kleiner als 0 sein!"); break; |
case 18: str = QString::fromUtf8("Die erste Einschränkung oder die Ratenleiste ist ungültig!"); break; |
case 19: str = QString::fromUtf8("Die letzte Einschränkung oder die Ratenleiste ist ungültig!"); break; |
case 20: str = QString::fromUtf8("Interner Rechenfehler!"); break; |
case 22: str = QString::fromUtf8("Nicht genügend Speicher!"); break; |
case 23: str = QString::fromUtf8("\"Antizipativ\" erlaubt keine Zinssatzänderung!"); break; |
case 24: |
case 25: str = QString::fromUtf8("Fehler beim Lesen der Zinssatzänderungen!"); break; |
case 26: str = QString::fromUtf8("Interner Fehler bei der Effektivzinsberechnung! Der Abschlussrhythmus muss jährlich sein!"); break; |
case 27: str = QString::fromUtf8("Interner Fehler bei der Effektivzinsberechnung! Die Laufzeit muss genau 1 Jahr betragen!"); break; |
case 28: str = QString::fromUtf8("Eine Effektivzinsberechnung ist bei <b>dekursiver</b> Verzinsung möglich!"); break; |
case 29: str = QString::fromUtf8("Für die Effektivzinsberechnung muss eine Rate größer 0 angegeben werden!"); break; |
default: |
sprintf (hv0, "Unbekannter Fehler \"%d\"! Prüfen Sie die Eingaben.", ret); |
str = QString::fromUtf8(hv0); |
// sprintf (hv0, "Unbekannter Fehler \"%d\"! Prüfen Sie die Eingaben.", ret); |
str = QString("Unbekannter Fehler \"%1\"! Prüfen Sie die Eingaben.").arg(ret); |
} |
KMessageBox::error(0, str, i18n("Fehler")); |
229,9 → 394,10 |
lineEdit_ErgZiZusch->clear(); |
lineEdit_ErgAnnZusch->clear(); |
lineEdit_ErgSumAnnZusch->clear(); |
delete tp; |
return; |
} |
/* |
if (TpPars.effformel > 0.0) |
PointNumber(TpPars.effformel, 3, &hv0[0]); |
else |
239,12 → 405,11 |
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); |
kIntNumInput_AnzRaten->setValue(TpPars.anzraten); |
date_int(&day1, &mon1, &year1, TpPars.dbis); |
255,6 → 420,7 |
dt.setYMD(year1, mon1, day1); |
kDateWidget_Endfael->setDate(dt); |
rate = TpPars.ergrate; |
PointNumber(TpPars.ergrate, 2, hv0); |
lineEdit_ErgRate->clear(); |
lineEdit_ErgRate->insert(hv0); |
278,120 → 444,241 |
PointNumber(TpPars.antotal, 2, hv0); |
lineEdit_ErgSumAnnZusch->clear(); |
lineEdit_ErgSumAnnZusch->insert(hv0); |
// Effektivzinssatz berechnen |
/* pars.effekt = TRUE; |
pars.zuschfix = 0.0; |
pars.zuschprz = 0.0; |
pars.zuschannu = 0.0; |
pars.ergrate = 0.0; |
pars.lrate = 0.0; |
pars.ezins = 0.0; |
pars.zuschuss = 0.0; |
pars.gewicht = 0.0; |
if (TpPars.abschlry > 40) |
pars.abschlry = 52; |
else |
pars.abschlry = 12; |
pars.spesen = 0.0; |
pars.rate = TpPars.ergrate; |
pars.endfaell = 0L; |
pars.fixrate = TRUE; |
pars.ziaend = FALSE; |
tp->setPars(&pars); |
if ((ret = tp->tilgpl()) != 0) |
{ |
KMessageBox::error(0, QString("Interner Fehler \"%1\"!").arg(ret), i18n("Fehler")); |
delete tp; |
return; |
} |
PointNumber(100.0 - (100.0 / TpPars.ezins * pars.ezins), 3, &hv0[0]); |
lineEdit_EffZi->clear(); |
lineEdit_EffZi->insert(hv0); |
KMessageBox::information(this, QString("O-EZins: %1\nN-EZins: %2\nGesamt1: %3\nGesamt2: %4") |
.arg(TpPars.ezins) |
.arg(pars.ezins) |
.arg(TpPars.gesamt) |
.arg(pars.gesamt)); |
*/ |
delete tp; |
} |
void tilgungsplanWidget::txRaDezSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaNovSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaOktSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaSepSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaAugSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaJulSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaJunSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaMaiSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaMarSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaFebSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaJanSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txRaAprSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txGesBelastSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::txEffZiSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::intAnzRatenSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numAnnZuschSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::dtZiGiltAbSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::dtRaVonSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::dtRaBisSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::dtEndfaelSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::dtAuszahlSlot() |
{} |
{ |
kDateWidget_ZiGiltAb->setDate(kDateWidget_Auszahlung->date()); |
dirty = TRUE; |
} |
void tilgungsplanWidget::dtAbschlussSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::lbRatartSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::cbZiChangeSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::cbUltimoSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::cbRateSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::mnCalcTPSlot() |
{} |
{ |
ratenplanWidget *dlg = new ratenplanWidget(this, "ratenplanWidgetBase", TRUE, 0); |
dlg->exec(); |
delete dlg; |
} |
void tilgungsplanWidget::mnInputZiSlot() |
{ |
#ifdef _ZINSAENDERUNG |
ziaendWidget *dlg = new ziaendWidget(this, "ziaendWidgetBase", TRUE, 0); |
dlg->exec(); |
delete dlg; |
#else |
KMessageBox::information(0, i18n("This module was omitted at compile time! To activate it, define \"_ZINSAENDERUNG\" globaly and recompile the program.")); |
#endif |
} |
void tilgungsplanWidget::lbVerzartSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::lbTageberSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numZuzaehlSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numBeaGebSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numZisatzSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numZiZuschSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numRateSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numFixspesenSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::rbZuschPSlot() |
{ |
426,10 → 713,14 |
} |
void tilgungsplanWidget::cbRundenSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::numBetragSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::helpAbout() |
{} |
460,7 → 751,7 |
void tilgungsplanWidget::fileExit() |
{ |
mamma->close(); |
} |
void tilgungsplanWidget::filePrint() |
467,19 → 758,67 |
{} |
void tilgungsplanWidget::fileSaveAs() |
{} |
{ |
QString fname = KFileDialog::getSaveFileName(QString("tilgpars.dat"), QString("*.dat"), this, QString("Tilgungsplan")); |
QFile tmpFile; |
if (fname.isEmpty()) |
return; |
tmpFile.setName(fname); |
if (tmpFile.open(IO_ReadWrite | IO_Truncate) == FALSE) |
{ |
KMessageBox::error(0, QString("Could not open file for writing: %1").arg(tmpFile.errorString())); |
return; |
} |
moveValues(); |
write (tmpFile.handle(), &TpPars, sizeof(TPPARS)); |
tmpFile.close(); |
} |
void tilgungsplanWidget::fileSave() |
{} |
{ |
QString hdir = QDir::homeDirPath (); |
QFile tmpFile; |
if (!dirty) |
return; |
// Zuletzt verwendete Maskenparameter in eine Datei schreiben. |
hdir.append("/.tilgpars.dat"); |
tmpFile.setName(hdir); |
if (tmpFile.open(IO_ReadWrite | IO_Truncate) == FALSE) |
{ |
KMessageBox::error(0, QString("Could not open file for writing: %1").arg(tmpFile.errorString())); |
return; |
} |
moveValues(); |
write (tmpFile.handle(), &TpPars, sizeof(TPPARS)); |
tmpFile.close(); |
KMessageBox::information(this, i18n("Die Daten der Eingabemaske wurden erfolgreich gespeichert.")); |
} |
void tilgungsplanWidget::fileOpen() |
{} |
{ |
QString fname = KFileDialog::getOpenFileName(QString::null, QString("*.dat"), this, QString("Tilgungsplan")); |
if (fname.isEmpty()) |
return; |
readValues(fname.ascii()); |
} |
void tilgungsplanWidget::fileNew() |
{} |
void tilgungsplanWidget::lbValutaSlot() |
{} |
{ |
dirty = TRUE; |
} |
void tilgungsplanWidget::cbAbschlSlot() |
{ |
502,7 → 841,9 |
default: |
sprintf (hv0, "Gewähltes Item: %d", item); |
KMessageBox::information(0, i18n(hv0)); |
} |
} |
dirty = TRUE; |
} |
#include "tilgungsplanwidget.moc" |
/tilgungsplan/trunk/src/tilgplan.h |
---|
20,10 → 20,6 |
#ifndef _TILGPLAN_H |
#define _TILGPLAN_H |
#ifndef _ZINSAENDERUNG |
#define _ZINSAENDERUNG |
#endif |
#ifndef BOOL |
typedef unsigned char BOOL; |
#endif |
118,6 → 114,7 |
{ |
public: |
TRech (TPPARS *pPars) { TpPars = pPars; rund_fakt = (pPars->runden) ? 0 : 2; }; |
void setPars(TPPARS *pPars) { TpPars = pPars; }; |
int tilgpl (void); // Plausibilitätsprüfung, Steuerung |
#ifdef _ZINSAENDERUNG |
int GetZiaend (); |
146,9 → 143,6 |
private: |
TPPARS *TpPars; |
DTABLE DTable; |
//#ifdef _ZINSAENDERUNG |
// ZIAEND Zi; |
//#endif |
int rund_fakt; |
int verzinsung; |
int reh; |
/tilgungsplan/trunk/src/helper.cpp |
---|
179,6 → 179,9 |
char zw[21]; |
char *beg,*end; |
if (sdate == NULL) |
return -1L; |
if (!kenn) |
{ |
if (strlen (sdate) < 6) |
415,6 → 418,9 |
BOOL flag; |
char *p; |
if (ret == NULL) |
return NULL; |
// Ist Zahl < 0.0? |
if (Zahl < (double)0.0) |
/tilgungsplan/trunk/src/tilgungsplanwidget.h |
---|
100,7 → 100,14 |
/*$PROTECTED_SLOTS$*/ |
private: |
void moveValues(); |
void readValues(const char *fname, BOOL home); |
void readValues(const char *fname) { readValues(fname, FALSE); } |
void readValues() { readValues("/.tilgpars.dat", TRUE); } |
QWidget *mamma; |
TPPARS TpPars; |
BOOL dirty; |
}; |
#endif |
/tilgungsplan/trunk/src/Makefile.am |
---|
22,9 → 22,10 |
bin_PROGRAMS = tilgungsplan |
# the application source, library search path, and link libraries |
tilgungsplan_SOURCES = helper.cpp main.cpp tilgrech.cpp tilgungsplan.cpp \ |
tilgungsplanwidget.cpp tilgungsplanwidgetbase.ui ziaendwidget.cpp zinssatzaenderung.ui |
tilgungsplan_LDFLAGS = $(KDE_RPATH) $(all_libraries) |
tilgungsplan_SOURCES = helper.cpp main.cpp ratenplan.ui ratenplanwidget.cpp \ |
tilgrech.cpp tilgungsplan.cpp tilgungsplanwidget.cpp tilgungsplanwidgetbase.ui \ |
ziaendwidget.cpp zinssatzaenderung.ui |
tilgungsplan_LDFLAGS = $(KDE_RPATH) $(all_libraries) -lkio |
tilgungsplan_LDADD = $(LIB_KDEUI) |
# this is where the desktop file will go |