forked from KDE/kbruch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svn path=/trunk/kdeextragear-1/kbruch/; revision=153377
- Loading branch information
Robert Gogolok
committed
May 2, 2002
0 parents
commit 56b4723
Showing
29 changed files
with
3,550 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Programmer | ||
========== | ||
|
||
Sebastian Stein <[email protected]> | ||
|
||
|
||
Tester | ||
====== | ||
|
||
Sven Guckes <[email protected]> | ||
Stefan Schumacher <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
2002-05-02 Sebastian Stein <[email protected]> | ||
|
||
* the statistic window is positionated next to the task window | ||
|
||
* removed English translation of the GUI | ||
|
||
* renamed the project to KBruch | ||
|
||
* version 0.19 | ||
|
||
2002-04-16 Sebastian Stein <[email protected]> | ||
|
||
* ported it to KDE 2 | ||
|
||
* added internationalization support | ||
|
||
* translated the German version | ||
|
||
* added a English translation to retake all strings from the program | ||
|
||
* version 0.18 | ||
|
||
|
||
2002-03-16 Sebastian Stein <[email protected]> | ||
|
||
* first version of the answer and result window (finished in most cases) | ||
|
||
* added the parameter window (with support of dynamic main denominator size) | ||
|
||
* moved the high() function to tool.h | ||
|
||
* added a statistic window | ||
|
||
* maybe fixed the floating point exception | ||
|
||
* version 0.17 | ||
|
||
|
||
2002-01-30 Sebastian Stein <[email protected]> | ||
|
||
* fixed autoconf/automake for Qt support (thanks to Kevin Krammer) | ||
|
||
* tried to stabilize the primzahl class | ||
|
||
* coded a better solution for the "press enter for 2 times to go on" messages | ||
|
||
* version 0.16 | ||
|
||
2002-01-29 Sebastian Stein <[email protected]> | ||
|
||
* added autoconf/automake for Qt support | ||
|
||
* fixed a small bug in bruch.cpp to count correct entered results | ||
|
||
* added the lsm software map | ||
|
||
* added -t and --text to call the text mode user interface | ||
|
||
* started to build the Qt GUI | ||
|
||
* version 0.15 | ||
|
||
2002-01-25 Sebastian Stein <[email protected]> | ||
|
||
* some finetuning to the text GUI | ||
|
||
* version 0.13 was tested on RedHat 7.1, SuSe Linux 7.2, Slackware Linux 8 | ||
SunOS 5.7, FreeBSD 4.4, AIX Unix, MS Windows 2000 | ||
|
||
* added a check to autoconf/automake for gcc, so it compiles with -Wall | ||
|
||
* version 0.14 | ||
|
||
2002-01-24 Sebastian Stein <[email protected]> | ||
|
||
* some finetuning to the task generating | ||
|
||
* added command line options (?, h, help, v, version, d, debug) | ||
|
||
* some bugfixes in the ratio and task class | ||
|
||
* finished the text GUI | ||
|
||
* added the operator<< to class ratio and class task | ||
|
||
* program compiles with MS Visual C++ 6.0 on WIN32 | ||
|
||
* version 0.13 | ||
|
||
2002-01-23 Sebastian Stein <[email protected]> | ||
|
||
* the program now compiles on AIX and SunOS as well | ||
|
||
* added a gui for text mode | ||
|
||
* version 0.12 | ||
|
||
2002-01-17 Sebastian Stein <[email protected]> | ||
|
||
* the first working version without a gui | ||
|
||
* solves a given task | ||
|
||
* solves a generated task | ||
|
||
* version 0.10 | ||
|
||
|
||
2001-11-29 Sebastian Stein <[email protected]> | ||
|
||
* classes are now using vector<T> template | ||
|
||
* class task now solves problems | ||
|
||
* bugfix in class primzahl | ||
|
||
|
||
2001-11-28 Sebastian Stein <[email protected]> | ||
|
||
* started to program | ||
|
||
* implemented class primzahl and ratio | ||
|
||
* started to work on class task | ||
|
||
* added a main program | ||
|
||
* created a basic autoconf/automake system | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
####### kdevelop will overwrite this part!!! (begin)########## | ||
|
||
SUBDIRS = src | ||
|
||
EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README TODO kbruch.lsm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
see ChangeLog |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
what is left to do | ||
|
||
* I noticed a floating point exception one time, so look for it -> fixed? | ||
|
||
* I do not know if there are any Qt libs left to be replaced by the | ||
KDE ones (qapplication -> kapplication and so on) | ||
|
||
* set a greater value for the standard font | ||
|
||
* add help system | ||
|
||
* port it to KDE 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Begin3 | ||
Title: KBruch | ||
Version: 0.19 | ||
Entered-date: 2002-05-05 | ||
Description: task generator for calculations with fractions | ||
Keywords: ratio, fraction, generator | ||
Author: Sebastian Stein <[email protected]> | ||
Maintained-by: Sebastian Stein <[email protected]> | ||
Primary-site: http://www.hpfsc.de/bruch/index2.html | ||
Home-page: http://www.hpfsc.de/bruch/index2.html | ||
Original-site: http://www.hpfsc.de/bruch/ | ||
Platforms: Linux and other Unices with KDE support | ||
Copying-policy: GNU Public License | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
####### kdevelop will overwrite this part!!! (begin)########## | ||
bin_PROGRAMS = kbruch | ||
kbruch_SOURCES = tool.cpp task.cpp ratio.cpp qt_task.cpp qt_stat.cpp qt_para.cpp primzahl.cpp gui_qt.cpp kbruch.cpp | ||
kbruch_LDADD = $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) $(LIBSOCKET) | ||
|
||
|
||
EXTRA_DIST = kbruch.cpp kbruch.h kbruch.desktop lo32-app-kbruch.png lo16-app-kbruch.png gui_qt.cpp gui_qt.h primzahl.cpp primzahl.h qt_para.cpp qt_para.h qt_stat.cpp qt_stat.h qt_task.cpp qt_task.h ratio.cpp ratio.h task.cpp task.h tool.cpp tool.h | ||
|
||
install-data-local: | ||
$(mkinstalldirs) $(kde_appsdir)/Applications/ | ||
$(INSTALL_DATA) $(srcdir)/kbruch.desktop $(kde_appsdir)/Applications/kbruch.desktop | ||
$(mkinstalldirs) $(kde_icondir)/locolor/32x32/apps/ | ||
$(INSTALL_DATA) $(srcdir)/lo32-app-kbruch.png $(kde_icondir)/locolor/32x32/apps/kbruch.png | ||
$(mkinstalldirs) $(kde_icondir)/locolor/16x16/apps/ | ||
$(INSTALL_DATA) $(srcdir)/lo16-app-kbruch.png $(kde_icondir)/locolor/16x16/apps/kbruch.png | ||
|
||
uninstall-local: | ||
-rm -f $(kde_appsdir)/Applications/kbruch.desktop | ||
-rm -f $(kde_icondir)/locolor/32x32/apps/kbruch.png | ||
-rm -f $(kde_icondir)/locolor/16x16/apps/kbruch.png | ||
|
||
####### kdevelop will overwrite this part!!! (end)############ | ||
# this 10 paths are KDE specific. Use them: | ||
# kde_htmldir Where your docs should go to. (contains lang subdirs) | ||
# kde_appsdir Where your application file (.kdelnk) should go to. | ||
# kde_icondir Where your icon should go to. | ||
# kde_minidir Where your mini icon should go to. | ||
# kde_datadir Where you install application data. (Use a subdir) | ||
# kde_locale Where translation files should go to.(contains lang subdirs) | ||
# kde_cgidir Where cgi-bin executables should go to. | ||
# kde_confdir Where config files should go to. | ||
# kde_mimedir Where mimetypes should go to. | ||
# kde_toolbardir Where general toolbar icons should go to. | ||
# kde_wallpaperdir Where general wallpapers should go to. | ||
|
||
# set the include path for X, qt and KDE | ||
INCLUDES= $(all_includes) | ||
|
||
METASOURCES = AUTO | ||
|
||
# the library search path. | ||
kbruch_LDFLAGS = $(all_libraries) $(KDE_RPATH) | ||
|
||
# Uncomment the following two lines if you add a ui.rc file for your application to make use of | ||
# KDE | ||
#rcdir = $(kde_datadir)/kbruch | ||
#rc_DATA = kbruchui.rc | ||
|
||
#WARNING: if you use a ui.rc file above, use: | ||
|
||
# messages: rc.cpp | ||
|
||
# instead of | ||
|
||
# messages: | ||
|
||
messages: | ||
LIST=`find . -name \*.h -o -name \*.hh -o -name \*.H -o -name \*.hxx -o -name \*.hpp -o -name \*.cpp -o -name \*.cc -o -name \*.cxx -o -name \*.ecpp -o -name \*.C`; \ | ||
if test -n "$$LIST"; then \ | ||
$(XGETTEXT) $$LIST -o $(podir)/kbruch.pot; \ | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
/*************************************************************************** | ||
gui_qt.cpp - Qt GUI for KBruch | ||
------------------- | ||
begin : Tue Jan 29 12:00:00 CET 2002 | ||
copyright : (C) 2001 - 2002 by Sebastian Stein | ||
email : [email protected] | ||
***************************************************************************/ | ||
|
||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#include "gui_qt.h" | ||
|
||
|
||
/* ------ public member functions ------ */ | ||
|
||
/* constructor */ | ||
gui_qt::gui_qt(QWidget * parent, const char * name): QVBox(parent, name), | ||
pparent(parent), pname(name) | ||
{ | ||
#ifdef DEBUG | ||
cout << "constructor gui_qt()" << endl; | ||
#endif | ||
|
||
/* add/sub button */ | ||
addsubBtn = new QPushButton(i18n("&addition and subtraction"), this); | ||
addsubBtn->setFont(QFont("helvetica", 10)); | ||
QObject::connect(addsubBtn, SIGNAL(clicked()), this, | ||
SLOT(showQt_Para_addsub())); | ||
|
||
/* mul/div button */ | ||
muldivBtn = new QPushButton(i18n("&multiplication and division"), this); | ||
muldivBtn->setFont(QFont("helvetica", 10)); | ||
QObject::connect(muldivBtn, SIGNAL(clicked()), this, | ||
SLOT(showQt_Para_muldiv())); | ||
|
||
/* add/sub/mul/div button */ | ||
allBtn = new QPushButton(i18n("m&ixed"), this); | ||
allBtn->setFont(QFont("helvetica", 10)); | ||
allBtn->resize(100, 50); | ||
QObject::connect(allBtn, SIGNAL(clicked()), this, SLOT(showQt_Para_all())); | ||
|
||
/* help button */ | ||
helpBtn = new QPushButton(i18n("&help"), this); | ||
helpBtn->setFont(QFont("helvetica", 10)); | ||
|
||
/* exit button */ | ||
quitBtn = new QPushButton(i18n("E&xit"), this); | ||
QObject::connect(quitBtn, SIGNAL(clicked()), qApp, SLOT(quit())); | ||
|
||
/* show KBruch - version in the titel of the main widget */ | ||
QString caption = i18n("KBruch - "); | ||
caption += VERSION; | ||
setCaption(caption); | ||
|
||
/* fix the size of the main widget with +10% over the minimum */ | ||
setFixedSize(QSize(minimumSize() * 0.1f)); | ||
|
||
addsubBtn->setFocus(); | ||
} | ||
|
||
/* destructor */ | ||
gui_qt::~gui_qt() | ||
{ | ||
#ifdef DEBUG | ||
cout << "destructor gui_qt()" << endl; | ||
#endif | ||
|
||
/* no need to delete any child widgets, Qt does it by itself */ | ||
} | ||
|
||
|
||
/* ------ private slots ------ */ | ||
|
||
/* shows the main menu again and deletes the parameter window */ | ||
void gui_qt::closeQt_Para() | ||
{ | ||
show(); /* show the main menu */ | ||
delete para_window; /* delete the parameter window */ | ||
|
||
return; | ||
} | ||
|
||
/* shows the parameter window */ | ||
void gui_qt::showQt_Para_addsub() | ||
{ | ||
hide(); /* hides the main menu */ | ||
|
||
/* we build a new parameter window */ | ||
para_window = new qt_para(pparent, pname, YES, NO); | ||
|
||
/* we connect a slot to the close signal of the window, so we get to know | ||
* when the other window was closed */ | ||
QObject::connect(para_window, SIGNAL(closed()), this, SLOT(closeQt_Para())); | ||
para_window->show(); /* show the new window */ | ||
|
||
return; | ||
} | ||
|
||
/* shows the parameter window */ | ||
void gui_qt::showQt_Para_muldiv() | ||
{ | ||
hide(); /* hides the main menu */ | ||
|
||
/* we build a new parameter window */ | ||
para_window = new qt_para(0, 0, NO, YES); | ||
|
||
/* we connect a slot to the close signal of the window, so we get to know | ||
* when the other window was closed */ | ||
QObject::connect(para_window, SIGNAL(closed()), this, SLOT(closeQt_Para())); | ||
para_window->show(); /* show the new window */ | ||
|
||
return; | ||
} | ||
|
||
/* shows the parameter window */ | ||
void gui_qt::showQt_Para_all() | ||
{ | ||
hide(); /* hides the main menu */ | ||
|
||
/* we build a new parameter window */ | ||
para_window = new qt_para(0, 0, YES, YES); | ||
|
||
/* we connect a slot to the close signal of the window, so we get to know | ||
* when the other window was closed */ | ||
QObject::connect(para_window, SIGNAL(closed()), this, SLOT(closeQt_Para())); | ||
para_window->show(); /* show the new window */ | ||
|
||
return; | ||
} |
Oops, something went wrong.