Skip to content

Commit

Permalink
add initial code
Browse files Browse the repository at this point in the history
  • Loading branch information
juri117 committed Feb 2, 2020
1 parent 30f0d1d commit 63b1b21
Show file tree
Hide file tree
Showing 50 changed files with 5,627 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
<classpathentry exported="true" kind="lib" path="lib/sqlite-jdbc-3.8.7.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export
*.db
bin
build
*.log
*.jar
FlightLog_lib
2 changes: 2 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# java-flight-logbook
This is a java FX project which implements a flight logbook. I tried to make the input form for new flights as time saving as possible and also included an adaptable (column order and names) csv import.

## screenshots

<img src="docs/main-screen.png" width="50%">

<img src="docs/new-flight-screen.png" width="50%">

## install
copy sqlite-jdbc-3.8.7.jar to lib folder
Binary file added assets/addButton.psd
Binary file not shown.
8 changes: 8 additions & 0 deletions build.fxbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="ASCII"?>
<anttasks:AntTask xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:anttasks="http://org.eclipse.fx.ide.jdt/1.0" buildDirectory="${project}/build">
<deploy>
<application name="FlightLog" mainclass="flightLogApp.FlightLog" version="0.01"/>
<info title="FlightLog" vendor="Juri Bieler"/>
</deploy>
<signjar/>
</anttasks:AntTask>
13 changes: 13 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#[FlightLog]
#Sun Feb 02 20:18:24 CET 2020
debug=true
winWidth=1024.0
dividerPos=0.200990099009901
winHeight=608.0
language=de
theme=Default
dividerPos2=0.7371273712737128
winY=160.0
dividerPos1=0.33213644524236985
errorLog=true
winX=512.0
Binary file added docs/main-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/new-flight-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions lib/libs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
place here the following libs
sqlite-jdbc-3.8.7.jar
4 changes: 4 additions & 0 deletions mainfest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Manifest-Version: 1.0
Class-Path: lib/sqlite-jdbc-3.8.7.jar
Main-Class: flightLogApp.MainApp

26 changes: 26 additions & 0 deletions mappings/FluPP.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#[FluPP Map]
#Tue May 05 13:35:31 CEST 2015
encoding=ISO8859-1
seperator=;
marker=
nr=-1
pilot=4
copilot=5
passenger=6
plane=2
planeCallSign=3
launchMethod=7
start=-1
startDate=1
startTime=8
stop=-1
stopDate=1
stopTime=9
flightTime=10
flightTimeFormat=hh:mm
landings=14
fromAf=15
toAf=16
distance=18
cost=-1
note=17
27 changes: 27 additions & 0 deletions mappings/Startkladde.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#[Startkladde Map]
#Tue May 05 13:35:31 CEST 2015
encoding=UTF-8
seperator=,
marker="
fixMarker=true
nr=-1
pilot=3
copilot=4
passenger=-1
plane=1
planeCallSign=2
launchMethod=5
start=-1
startDate=0
startTime=8
stop=-1
stopDate=0
stopTime=9
flightTime=10
flightTimeFormat=hh:mm
landings=-1
fromAf=6
toAf=7
distance=-1
cost=-1
note=11
30 changes: 30 additions & 0 deletions src/bundles/general_de.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
newBook=neues Buch
import=Import
export=Export
options=Einstellungen
update=Update
contact=Kontakt
help=Hilfe

flights=Flüge
flightTime=Flugzeit

nr=Nr.
time=Zeit
landings=Land.
cost=Kosten
distance=Dist.
pilot=Pilot
copilot=Copilot
passenger=Passagier
plane=Flugzeug
planeCallSign=ID
launchMethod=Startart
startTime=Start
startDate=Datum
stopTime=Stop
stopDate=Datum
flightTime=Zeit
fromAf=Von
toAf=Bis
note=Notiz
30 changes: 30 additions & 0 deletions src/bundles/general_en.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
newBook=new Book
import=Import
export=Export
options=Settings
update=Update
contact=Contact
help=Help

flights=Flights
flightTime=Flighttime

nr=Nr.
time=Time
landings=Land.
cost=Cost
distance=Dist.
pilot=Pilot
copilot=Copilot
passenger=Passenger
plane=Plane
planeCallSign=ID
launchMethod=Launch
startTime=Start
startDate=Date
stopTime=Stop
stopDate=Date
flightTime=Time
fromAf=From
toAf=To
note=Note
30 changes: 30 additions & 0 deletions src/controls/TimePicker.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package controls;

import javafx.scene.control.TextField;

public class TimePicker extends TextField {

public TimePicker() {
super();
setText("00:00");
}

public TimePicker(String arg0) {
super(arg0);
setText("00:00");
}

@Override
public void replaceText(int start, int end, String text) {
if (text.matches("[0-9][0-9]:[0-9][0-9]")) {
super.replaceText(start, end, text);
}
}

@Override
public void replaceSelection(String text) {
if (text.matches("[0-9][0-9]:[0-9][0-9]")) {
super.replaceSelection(text);
}
}
}
Loading

0 comments on commit 63b1b21

Please sign in to comment.