From e6050896661e0d047bcae548e86d164b95e385b9 Mon Sep 17 00:00:00 2001 From: Vladimir Eliezer Tokarev Date: Sat, 27 Aug 2016 13:34:03 +0300 Subject: [PATCH] Created the basic idea polling booth gui The idea is simple all of the fxmls panels will be connected this how every one willknow which is the next or the previous panel --- .../ballot_summary_no_picture.fxml | 287 +++++++++ .../main/cast_or_audit/cast_or_audit.fxml | 260 ++++++++ .../printing_commitment_barcode.fxml | 147 +++++ .../select_candidate_by_picture.fxml | 220 +++++++ .../selest_candidate_name.fxml | 245 ++++++++ .../straight_channel_section.fxml | 322 ++++++++++ .../thank_for_auditing.fxml | 127 ++++ .../vote_have_been_cast.fxml | 249 ++++++++ .../main/welcome_splash/Main.class | Bin 0 -> 870 bytes .../welcome_splash/WelcomeSplashLoader.class | Bin 0 -> 1097 bytes .../welcome_splash/welcome_splash_screen.fxml | 99 +++ .../write_candidate_name.fxml | 565 ++++++++++++++++++ voting-booth-gui/src/main/ChainBuilder.java | 17 + voting-booth-gui/src/main/TwoWayNode.java | 14 + .../src/main/welcome_splash/Main.java | 23 + .../WelcomeSplashController.java | 31 + .../welcome_splash/WelcomeSplashLoader.java | 25 + .../welcome_splash/welcome_splash_screen.fxml | 2 +- 18 files changed, 2632 insertions(+), 1 deletion(-) create mode 100644 classes/production/voting-booth-gui/main/ballot_summary_no_picture/ballot_summary_no_picture.fxml create mode 100644 classes/production/voting-booth-gui/main/cast_or_audit/cast_or_audit.fxml create mode 100644 classes/production/voting-booth-gui/main/printing_commitment_barcode/printing_commitment_barcode.fxml create mode 100644 classes/production/voting-booth-gui/main/select_candidate_by_picture/select_candidate_by_picture.fxml create mode 100644 classes/production/voting-booth-gui/main/select_candidate_name/selest_candidate_name.fxml create mode 100644 classes/production/voting-booth-gui/main/straight_channel_section/straight_channel_section.fxml create mode 100644 classes/production/voting-booth-gui/main/thank_for_auditing/thank_for_auditing.fxml create mode 100644 classes/production/voting-booth-gui/main/vote_have_been_cast/vote_have_been_cast.fxml create mode 100644 classes/production/voting-booth-gui/main/welcome_splash/Main.class create mode 100644 classes/production/voting-booth-gui/main/welcome_splash/WelcomeSplashLoader.class create mode 100644 classes/production/voting-booth-gui/main/welcome_splash/welcome_splash_screen.fxml create mode 100644 classes/production/voting-booth-gui/main/write_candidate_name/write_candidate_name.fxml create mode 100644 voting-booth-gui/src/main/ChainBuilder.java create mode 100644 voting-booth-gui/src/main/TwoWayNode.java create mode 100644 voting-booth-gui/src/main/welcome_splash/Main.java create mode 100644 voting-booth-gui/src/main/welcome_splash/WelcomeSplashController.java create mode 100644 voting-booth-gui/src/main/welcome_splash/WelcomeSplashLoader.java diff --git a/classes/production/voting-booth-gui/main/ballot_summary_no_picture/ballot_summary_no_picture.fxml b/classes/production/voting-booth-gui/main/ballot_summary_no_picture/ballot_summary_no_picture.fxml new file mode 100644 index 0000000..90425c4 --- /dev/null +++ b/classes/production/voting-booth-gui/main/ballot_summary_no_picture/ballot_summary_no_picture.fxml @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + +
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+ +
+
+
+ + + + + + +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ + +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + +
diff --git a/classes/production/voting-booth-gui/main/cast_or_audit/cast_or_audit.fxml b/classes/production/voting-booth-gui/main/cast_or_audit/cast_or_audit.fxml new file mode 100644 index 0000000..881f8ad --- /dev/null +++ b/classes/production/voting-booth-gui/main/cast_or_audit/cast_or_audit.fxml @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + +
diff --git a/classes/production/voting-booth-gui/main/printing_commitment_barcode/printing_commitment_barcode.fxml b/classes/production/voting-booth-gui/main/printing_commitment_barcode/printing_commitment_barcode.fxml new file mode 100644 index 0000000..1139084 --- /dev/null +++ b/classes/production/voting-booth-gui/main/printing_commitment_barcode/printing_commitment_barcode.fxml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+
+ +
+ +
+
+ + + + + + +
+ + + + + +
+
+ +
+ + + + + +
+
+
+
+
+ + + + + + + + +
diff --git a/classes/production/voting-booth-gui/main/select_candidate_by_picture/select_candidate_by_picture.fxml b/classes/production/voting-booth-gui/main/select_candidate_by_picture/select_candidate_by_picture.fxml new file mode 100644 index 0000000..83cc30b --- /dev/null +++ b/classes/production/voting-booth-gui/main/select_candidate_by_picture/select_candidate_by_picture.fxml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +
+
+ + + + +
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + + + + +
+
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+ + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+ + + + + + + + +
diff --git a/classes/production/voting-booth-gui/main/select_candidate_name/selest_candidate_name.fxml b/classes/production/voting-booth-gui/main/select_candidate_name/selest_candidate_name.fxml new file mode 100644 index 0000000..9e1eec7 --- /dev/null +++ b/classes/production/voting-booth-gui/main/select_candidate_name/selest_candidate_name.fxml @@ -0,0 +1,245 @@ + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + +
+
+
+
+ + + + + + + + + +
diff --git a/classes/production/voting-booth-gui/main/straight_channel_section/straight_channel_section.fxml b/classes/production/voting-booth-gui/main/straight_channel_section/straight_channel_section.fxml new file mode 100644 index 0000000..86e2418 --- /dev/null +++ b/classes/production/voting-booth-gui/main/straight_channel_section/straight_channel_section.fxml @@ -0,0 +1,322 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + +
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + + + + + + + + + + + +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+ +
+
+ + + + + + + + + + + + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + + + + + + + + + + + +
+ +
+
+ + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + +
+ +
+
+
+
+
+
diff --git a/classes/production/voting-booth-gui/main/thank_for_auditing/thank_for_auditing.fxml b/classes/production/voting-booth-gui/main/thank_for_auditing/thank_for_auditing.fxml new file mode 100644 index 0000000..c0a4df6 --- /dev/null +++ b/classes/production/voting-booth-gui/main/thank_for_auditing/thank_for_auditing.fxml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+
+ + + + + +
+
+
+ + + + + + + + +
diff --git a/classes/production/voting-booth-gui/main/vote_have_been_cast/vote_have_been_cast.fxml b/classes/production/voting-booth-gui/main/vote_have_been_cast/vote_have_been_cast.fxml new file mode 100644 index 0000000..37b4ef3 --- /dev/null +++ b/classes/production/voting-booth-gui/main/vote_have_been_cast/vote_have_been_cast.fxml @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + +
+
+ + + + + + + + + + +
+ +
+
+ + + + + +
+
+ + + + + + + + + + +
+ +
+
+ + + + + +
+
+ + + + + + + + + + +
+ + + + + +
+
+ +
+ + + + + +
+
+
+
+
+
+
+
+
+ + + + + + + + +
diff --git a/classes/production/voting-booth-gui/main/welcome_splash/Main.class b/classes/production/voting-booth-gui/main/welcome_splash/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..f782c799a92e50e7e5dd3ac75e831b4fb7833c5f GIT binary patch literal 870 zcmZuw!EVz)5Pj=7apJg5anm#uXj2L_ZJ<8Dtq2JrkdRV@l&BTrfVR$(EI78cc4+x5 zE-eCy58$H^v$i3Xn#;`2+nG1>#_QjIe*6OP1fGo=HZ5$~Fwm)D+s0k&Xmig-756PX zu&~Qec`8GhK4U0#_l_CN7tu&CH2N|WZ)Vd|p@#f4AjIuQJ`aw$k~%IxGo8qUVWU6g zGW5GLX;R&jq1An#<$D1S$3&`RIL=s2uEsRm>Vj(vd&D=0X37_@q*hnc z!yf4Q9N4Hc>@HGtk_#MU`uY(c38m9r5_cqo`pnbL+b9TVf(~iXqgvQ^(8EIqk5G4T zfHp&W5w-5muvu(~$8jM2jKO<8Ka(1rkW2l)j-o6_Ux%qsY8IzrbS1&PzIldfBGREu zwfwdG+g#saGKtRUjRbra`V(x^!>Q5h0!p9-qE6PK$Rp3lm-jEhzR|(J64^=y*04-x zCr>~FD-n#8|GcP9B3Rji|3^mK2vWrr5xpzYPAo AvH$=8 literal 0 HcmV?d00001 diff --git a/classes/production/voting-booth-gui/main/welcome_splash/WelcomeSplashLoader.class b/classes/production/voting-booth-gui/main/welcome_splash/WelcomeSplashLoader.class new file mode 100644 index 0000000000000000000000000000000000000000..ae33b2f8ca6daf844f38892194b516bd7085eca4 GIT binary patch literal 1097 zcma)5TTc@~6#k}^ZmFwaDFy0?l#}CD3VkigIiVZngMPF zqyE0>G33-bH*MvuuneazbnnpO-oEmx3AGTZ4&N0nX^;3`1uM4PgsqiwEsdePZ?45Qn}={Y!X2SaTY#A=b=5w*I!zY5D0oMVP3`p z78wTGcU;~%5C$0#@+qdHyeOZw%+Qk!ZYf?9eu+#b?+3HFjsXdS>sC5`qTv-YF zI5Va_rqrA#{LrJWISq@$a4}cK1ih~TdQTB#a2ZLE4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + + + + +
+ +
+
+ + + + +
+
+
+
+
+
diff --git a/classes/production/voting-booth-gui/main/write_candidate_name/write_candidate_name.fxml b/classes/production/voting-booth-gui/main/write_candidate_name/write_candidate_name.fxml new file mode 100644 index 0000000..94610fc --- /dev/null +++ b/classes/production/voting-booth-gui/main/write_candidate_name/write_candidate_name.fxml @@ -0,0 +1,565 @@ + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + +
+ + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + +
+ + + +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + +
diff --git a/voting-booth-gui/src/main/ChainBuilder.java b/voting-booth-gui/src/main/ChainBuilder.java new file mode 100644 index 0000000..76677bb --- /dev/null +++ b/voting-booth-gui/src/main/ChainBuilder.java @@ -0,0 +1,17 @@ +package main; + +/** + * Created by Vladimir Eliezer Tokarev on 8/27/2016. + * ChainBuilder builds all the two way nodes that are in current project (voting-booth-gui) + * and connects between all of them so they can keep their flow + */ +public class ChainBuilder { + + /** + * Creates all the twoWayNodes and connects between them + */ + public static void Build() { + + + } +} diff --git a/voting-booth-gui/src/main/TwoWayNode.java b/voting-booth-gui/src/main/TwoWayNode.java new file mode 100644 index 0000000..a247f69 --- /dev/null +++ b/voting-booth-gui/src/main/TwoWayNode.java @@ -0,0 +1,14 @@ +package main; + +import javafx.stage.Stage; + +/** + * Created by Vladimir Eliezer Tokarev on 8/27/2016. + * Two Way node gives the ability to set next and previous objects + */ +public interface TwoWayNode { + + void SetNext(TwoWayNode nextObject); + void SetPrevious(TwoWayNode previousObject); + void SetStage(Stage primaryStage); +} diff --git a/voting-booth-gui/src/main/welcome_splash/Main.java b/voting-booth-gui/src/main/welcome_splash/Main.java new file mode 100644 index 0000000..d9c6213 --- /dev/null +++ b/voting-booth-gui/src/main/welcome_splash/Main.java @@ -0,0 +1,23 @@ +package main.welcome_splash; + +import javafx.application.Application; +import javafx.stage.Stage; + +/** + * Created by Vladimir Eliezer Tokarev on 8/27/2016. + */ +public class Main extends Application { + + @Override + public void start(Stage primaryStage) throws Exception{ + new WelcomeSplashLoader(primaryStage); + primaryStage.setTitle("Meerkat Polling Station"); + primaryStage.show(); + } + + public static void main(String[] args) throws InterruptedException { + launch(args); + } + +} + diff --git a/voting-booth-gui/src/main/welcome_splash/WelcomeSplashController.java b/voting-booth-gui/src/main/welcome_splash/WelcomeSplashController.java new file mode 100644 index 0000000..2a10185 --- /dev/null +++ b/voting-booth-gui/src/main/welcome_splash/WelcomeSplashController.java @@ -0,0 +1,31 @@ +package main.welcome_splash; + +import javafx.scene.Parent; +import javafx.stage.Stage; +import main.TwoWayNode; + +/** + * Created by Vladimir Eliezer Tokarev on 8/27/2016. + * WelcomeSplashController handle the behavior of welcome splash class + */ +public class WelcomeSplashController implements TwoWayNode { + + private Parent Next; + private Parent Previous; + private Stage currentSrage; + + @Override + public void SetNext(TwoWayNode nextObject) { + + } + + @Override + public void SetPrevious(TwoWayNode previousObject) { + + } + + @Override + public void SetStage(Stage primaryStage) { + + } +} diff --git a/voting-booth-gui/src/main/welcome_splash/WelcomeSplashLoader.java b/voting-booth-gui/src/main/welcome_splash/WelcomeSplashLoader.java new file mode 100644 index 0000000..9560175 --- /dev/null +++ b/voting-booth-gui/src/main/welcome_splash/WelcomeSplashLoader.java @@ -0,0 +1,25 @@ +package main.welcome_splash; + +import javafx.concurrent.Task; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; + +import java.io.IOException; + +/** + * Created by Vladimir Eliezer Tokarev on 8/27/2016. + */ +public class WelcomeSplashLoader { + private static final String SPLASH_SCREEN_ON_BOOT_FXML_PATH = "welcome_splash_screen.fxml"; + + private Stage currentStage; + + public WelcomeSplashLoader(Stage primaryStage) throws IOException + { + Parent splashScreenOnBootRoot = FXMLLoader.load(getClass().getResource(SPLASH_SCREEN_ON_BOOT_FXML_PATH)); + currentStage = primaryStage; + currentStage.setScene(new Scene(splashScreenOnBootRoot, 565, 365)); + } +} diff --git a/voting-booth-gui/src/main/welcome_splash/welcome_splash_screen.fxml b/voting-booth-gui/src/main/welcome_splash/welcome_splash_screen.fxml index 8490224..33e001c 100644 --- a/voting-booth-gui/src/main/welcome_splash/welcome_splash_screen.fxml +++ b/voting-booth-gui/src/main/welcome_splash/welcome_splash_screen.fxml @@ -5,7 +5,7 @@ - +