Clock and calendar application
version 2.1
I.Compiling and running
Two ways to compile this application are:
1. Start the script "compile.qt2" for Qt-2.X, start the script "compile.qt3" for Qt-3.X
2. ./configure --disable-dependency-tracking and make
In both caces the environment variable QTDIR must be defined. If not define it with e.g. : export QTDIR=/usr/lib/qt3, or whatever value is apropriate for your Linux-box.
The result of the compilation should be the binary ./bioritms Run it. It doesn't matter which the current directory is. It doesn't need "make install".
II.What does the application do?
This application is an ethernity calendar with a clock. It shows the value of the system clock. You can evaluate the number of the working and non-working days for a period of your choise. You can define a day to be a non-working one if you wish. You can establish the system date and time if you are a "super-user".If not this action is ignored. You can change the language of the application. By default it is distributed with "bulgarien", "russian", "english" and "french". You can change the running text in the status bar and give it to other people like a present.
Change of the date
You can change the date using the spin buttons. In the left part you see the calendar month for the date selected by you. You can choose a day in the calendar and define it as working/non-working using the 2 buttons beneeth the calendar. You have a button to return to the current day.
Cange of the system date
You should be a super user. You change the time using the spin buttons. Pressing them is stoping the clock. After selecting the time press "change" button. This starts the clock view again.
Calculating the number of days for selected period of time
First you select the start date for the period in the calendar and put it in the start date field by pressing the button "from date". You select the end date for the period using the button "to date". Now press the button calculate to see how much working days there ara in this period of time in your calendar and how much non-working days accordingly.
Change of font encoding and language of the application
This changes applyes to all views of the application, not the system. All text appears according to the selected language and encoding. If you select inapropriate encoding for the selected language you can possibly get an unreadable text.
Editing and adding of the running text
You can change the running text from the mnain menu "reclama-reclama". Use the button "new" or the key F1 to add new text. Then you can select language and encoding accordingly. You can add up to 500 characters. Then use the buttons save and close. The new text will run in the status bar after the default one. To edit the already running text you must position in the text and overtype your changes. New changes will appear after saving them and closing the edit dialogue.
Your changes of the text are kept in the file home/<user>/Calendar/Reklama/RECLAMS.DTA If you include this file with your changes in the tar gzip file of the calendar, after decompressing it from any user it will be copied in the home directory for this user and will appear in the satatus bar of the
application.
Calculate your bioritms:
From the menu you have to click twise "Bioritms" -> "Bioritms". After that, if you start this application for first time, you will see a window, where you must add your birthdate and clicl the "calculate button. This date will be automaticaly remembered in your computer. Then you can see your bioritmes every day of the year. You can see one or all your bioritme`s graphics if you click of the button bilow.
This application is written in Microsoft style using 2 threads and 2 timers. It is created like a Document/View architecture using dynamic object creation with the help of additional layer over the QT library. You can see details in the source code.
Enjoy using the bioritms.
Michael Petrov town of Smolyan, Bulgaria
Freelance computer programmer