time-calc/Readme.md

215 lines
6.2 KiB
Markdown
Raw Normal View History

2024-02-10 10:35:02 +00:00
# Time Calc
## Introduction
Time Calc is a desktop application used to track the remaining time until the end of some activity - like working hours.
_Time Calc is written in Java programming language and uses the Swing framework._
2024-03-09 19:18:05 +00:00
![Screenshot of application "Time Calc"](images/screenshot.jpg)
2024-02-25 09:11:07 +00:00
2024-02-10 10:35:02 +00:00
## Usage
### Start of application
When "Time Calc" is started", user is asked for:
- start time ... like 7:30
- overtime ... like 0:45 ... overtime is optional and the default value is 0:00
### Restart of application
You can restart the app, if you press the **"Restart"** button.
- Then you are asked again for start time and overtime.
### End of application
You can stop the app, if you press the **"Exit"** button or click on the exit window button.
- Then application is stopped.
## Special files
If these files are present, something special happens.
2024-03-03 13:25:16 +00:00
### .tc/starttime.txt
2024-02-10 10:35:02 +00:00
This file contains the default start time - used during the previous run of the app.
If file starttime.txt does not exist, then the default start time is 7:00.
2024-03-03 13:25:16 +00:00
### .tc/overtime.txt
2024-02-10 10:35:02 +00:00
This file contains the default overtime - used during the previous run of the app.
If file overtime.txt does not exist, then the default overtime is 0:00.
2024-03-03 13:25:16 +00:00
### .tc/test.txt
2024-02-10 10:35:02 +00:00
If file test.txt exists, then user is not asked for start time and overtime. Instead, the values in files starttime.txt and overtime.txt are used.
2024-03-03 13:25:16 +00:00
### ./tc/timecalc.conf
Configuration is stored here.
### ./tc/timecalc.{profile name}.conf
Configuration for a profile is stored here.
### ./tc/time-calc-current-profile.txt
Current profile is stored here.
2024-03-09 15:51:40 +00:00
### ./tc/time-calc-profiles.txt
2024-03-03 13:25:16 +00:00
Optional assignments of profiles to numbers is stored here.
2024-02-11 13:16:36 +00:00
## Features
### 3 Visibility modes
* STRONGLY_COLORED - many colors
* WEAKLY_COLORED - darkened colors
* GRAY - gray colors
* NONE - widgets are hidden
### Widgets
#### Analog Clock
* hour hand
* minute hand (can be disabled in configuration)
* second hand (can be disabled in configuration)
* millisecond hand (can be disabled in configuration)
* shows current year, month, day of month and day of week, if analog clock is hovered by mouse cursor and Visibility is STRONGLY_COLORED
* shows yellow highlighted remaining time until end of today working hours, if analog clock is hovered by mouse cursor and Visibility is STRONGLY_COLORED
* hands can be long or shorter (can be set in configuration)
#### Progress Square
* Show graphically day progress
#### Progress Circle
* Show graphically day progress
#### Hour Battery
#### Day Battery
#### Week Battery
#### Month Battery
### Smileys
Progress in square, circle or batteries is represented also by smileys (only, if the widget is hovered by mouse cursor):
2024-02-25 09:11:07 +00:00
Smileys can be colored or white-black (can be set in configuration)
<pre>&#x1f631;</pre> ... face screaming in fear ... less than 6.25%
<pre>&#x1f621;</pre> ... pouting face ... less than 12.5%
<pre>&#x1f620;</pre> ... angry face ... less than 18.75%
<pre>&#x1f62d;</pre> ... loudly crying face ... less than 25%
<pre>&#x1f622;</pre> ... crying face ... less than 31.25%
<pre>&#x1f61e;</pre> ... disappointed face ... less than 37.5%
<pre>&#x1f62b;</pre> ... tired face ... less than 43.75%
<pre>&#x1f628;</pre> ... fearful face ... less than 50%
<pre>&#x1f632;</pre> ... astonished face ... less than 56.25%
<pre>&#x1f626;</pre> ... frowning face with open mouth ... less than 62.5%
<pre>&#x1f60a;</pre> ... smiling face with smiling eyes ... less than 68.75%
<pre>&#x1f603;</pre> ... smiling face with open mouth ... less than 75%
<pre>&#x1f601;</pre> ... grinning face with smiling eyes ... less than 81.25%
<pre>&#x1f60e;</pre> ... smiling face with sunglasses ... less than 87.5%
<pre>&#x1f60d;</pre> ... smiling face with heart-shaped eyes ... less than 93.75%
<pre>&#x1f608;</pre> ... smiling face with horns ... more or equal to 93.75%
2024-02-10 10:35:02 +00:00
## Key shortcuts
2024-02-25 09:11:07 +00:00
* UP - Show widgets again, if they were hidden
2024-03-03 14:27:56 +00:00
* DOWN or PERIOD - Hide all widgets and buttons
2024-02-25 09:11:07 +00:00
* H - Show all hide everything
* G - switch between coloured and no-coloured visibility mode
* C - switch between strongly coloured and weakly coloured visibility mode
* V - switch visibility mode NONE and STRONGLY_COLOURED
* SPACE - switch visibility mode: NONE, GREY, WEAKLY_COLOURED, STRONGLY_COLOURED
* F2 - run commands
* R - restart app
2024-03-03 11:23:14 +00:00
* N - enable or disable notifications
2024-02-25 09:11:07 +00:00
* W - open work days window
* A - open activity window
* S - open config window
* P or F1 - open help window
* X - exit application
* J - show random Joke
2024-03-02 12:03:19 +00:00
* U - enable everything
* I - disable almost everything
2024-03-03 11:23:14 +00:00
* E - enable or disable battery waves
* B - hide or show buttons
2024-03-03 13:19:59 +00:00
* 0,1,2,3,4,5,6,7,8 or 9 - activates a profile
* F - show numbers for profiles
2024-03-03 14:27:56 +00:00
* Q - hide or show progress square
* L - hide or show progress circle
* M - hide or show walking human
* Y - hide or show smileys
2024-03-09 09:55:14 +00:00
* LEFT - switch to previous profile
* RIGHT - switch to next profile
* K - hide or show clock
2024-03-09 12:06:06 +00:00
* SHIFT + {Y,N,D,H,M,S or I} - Increase test time value
* CTRL + {Y,N,D,H,M,S or I} - Decrease test time value
* ALT + {Y,N,D,H,M,S or I} - Rest test time value
2024-03-09 10:28:08 +00:00
* D - Reset custom time values to the real time
* SHIFT + A - Increase arrival time
* CTRL + A - Decrease arrival time
* SHIFT + O - Increase overtime
* CTRL + O - Decrease overtime
* SHIFT + W - Increase working time
* CTRL + W - Decrease worknig time
* SHIFT + P - Increase pause
* CTRL + P - Decrease pause
* SHIFT + C - Increase or decrease of time is change by 1 hour
* CTRL + C - Increase or decrease of time is change by 1 minute
2024-03-09 22:36:59 +00:00
* CTRL + E - Save arrival, overtime, working time, pause time and note
2024-02-25 09:11:07 +00:00
2024-02-10 10:35:02 +00:00
## Command button
## Todos
### New features
2024-03-10 15:06:21 +00:00
* Custom arrival target
2024-02-10 10:35:02 +00:00
* Split to Maven modules
* Junit, Mockito, etc.
* Checkstyle
* Sonarlint
* Sonarqube
### Fix these known bugs
* Clock, square and circle are grey, if visibility mode is weakly colored.
* Decreasing real time sometimes does not work correctly.
2024-02-10 10:35:02 +00:00
2024-02-25 08:58:18 +00:00
## For Developers
### How to add new property
**Change these places:**
* timecalc-default.conf
* TimeCalcProperty
* TimeCalcConfiguration
* ConfigWindow
* Widget class
* MainWindow - bind