Skip to content

Commit

Permalink
Release build
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemille authored Aug 9, 2022
1 parent e1391ad commit 1cf23bc
Show file tree
Hide file tree
Showing 73 changed files with 3,115 additions and 0 deletions.
54 changes: 54 additions & 0 deletions swengProg/SwengProject.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
STARTING APP -
Elector Page - Open
Elector Page - Click invio login
DB Operations - Credenziali valide
DB Operations - Sessioni lette
Elector Page - Vota CategoricalVote
DB Operations - Candidati letti
DB Operations - Partiti letti
Categorical vote Page - Open
DB Operations - Sessioni lette
Elector Page - Vota CategoricalVote
DB Operations - Candidati letti
DB Operations - Partiti letti
Categorical vote Page - Open
DB Operations - Candidati per partito letti
DB Operations - Inserito voto
Categorical vote Page - Click aggiungi voto
DB Operations - Sessioni lette
DB Operations - Candidati letti
DB Operations - Partiti letti
Admin Page - Click lista Candidati
Admin Page - Click lista Candidati
Admin Page - Click lista Partiti
DB Operations - Candidati per partito letti
Admin Page - Click lista Partiti
DB Operations - Candidati per partito letti
Admin Page - Logout
Elector Page - Open
Elector Page - Click invio login
DB Operations - Credenziali valide
DB Operations - Sessioni lette
DB Operations - Candidati letti
DB Operations - Partiti letti
Admin Page - View sessions
DB Operations - Sessioni lette
DB Operations - Candidati letti
DB Operations - Partiti letti
Admin Page - Click lista Partiti
DB Operations - Candidati per partito letti
Admin Page - Click lista Partiti
DB Operations - Candidati per partito letti
Admin Page - Click aggiungi sessione di voto
DB Operations - Inserita sessione
DB Operations - Sessioni lette
Elector Page - Vota ReferendumVote
Referendum vote Page - Open
DB Operations - Inserito voto
Referendum vote Page - Inserimento voto
DB Operations - Sessioni lette
STARTING APP -
Elector Page - Open
Elector Page - Click invio login
DB Operations - Credenziali valide
DB Operations - Sessioni lette
Binary file added swengProg/bin/application/CheckLogin.class
Binary file not shown.
Binary file added swengProg/bin/application/Encryption.class
Binary file not shown.
Binary file added swengProg/bin/application/Main.class
Binary file not shown.
Binary file added swengProg/bin/application/SessionWinner.class
Binary file not shown.
Binary file added swengProg/bin/application/userLogged.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/Candidato.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/CategoricalPrefVote.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/CategoricalVote.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/OrdinalVote.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/Partito.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/ReferendumVote.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/Session.class
Binary file not shown.
Binary file added swengProg/bin/baseClasses/User.class
Binary file not shown.
Binary file added swengProg/bin/dbManagement/DBConnector.class
Binary file not shown.
Binary file added swengProg/bin/dbManagement/Querys.class
Binary file not shown.
Binary file added swengProg/bin/debugTool/Log.class
Binary file not shown.
57 changes: 57 additions & 0 deletions swengProg/bin/graphicPages/AdminPage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="710.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.AdminPage">
<children>
<Label layoutX="30.0" layoutY="14.0" text="Admin">
<font>
<Font size="31.0" />
</font>
</Label>
<ListView fx:id="sessionFList" layoutX="30.0" layoutY="107.0" onMouseClicked="#sessionFClicked" prefHeight="231.0" prefWidth="246.0" />
<ListView fx:id="sessionCList" layoutX="315.0" layoutY="107.0" onMouseClicked="#sessionCClicked" prefHeight="231.0" prefWidth="236.0" />
<Label layoutX="30.0" layoutY="90.0" text="Lista partiti" />
<Label layoutX="315.0" layoutY="90.0" text="Lista candidati" />
<Label layoutX="30.0" layoutY="357.0" text="Aggiungi partito" />
<Label layoutX="315.0" layoutY="357.0" text="Aggiungi candidato (seleziona un partito)" />
<Button fx:id="addFButton" layoutX="203.0" layoutY="387.0" mnemonicParsing="false" onMouseClicked="#addFClicked" text="AGGIUNGI" />
<Button fx:id="addCButton" layoutX="478.0" layoutY="387.0" mnemonicParsing="false" onMouseClicked="#addCClicked" text="AGGIUNGI" />
<TextField fx:id="addFName" layoutX="28.0" layoutY="387.0" />
<TextField fx:id="addCName" layoutX="315.0" layoutY="387.0" />
<TextField fx:id="addCSurname" layoutX="317.0" layoutY="429.0" />
<Separator layoutX="294.0" layoutY="99.0" orientation="VERTICAL" prefHeight="351.0" prefWidth="6.0" />
<Label layoutX="-238.0" layoutY="379.0" text="Label" />
<Label layoutX="28.0" layoutY="492.0" text="Crea votazione (Seleziona in alto i partiti da includere)" />
<RadioButton fx:id="rb1" layoutX="32.0" layoutY="530.0" mnemonicParsing="false" selected="true" text="Ordinale">
<toggleGroup>
<ToggleGroup fx:id="vot" />
</toggleGroup>
</RadioButton>
<RadioButton fx:id="rb2" layoutX="177.0" layoutY="530.0" mnemonicParsing="false" text="Categorica" toggleGroup="$vot" />
<RadioButton fx:id="rb3" layoutX="315.0" layoutY="516.0" mnemonicParsing="false" prefHeight="46.0" prefWidth="104.0" text="Categorica con preferenza" toggleGroup="$vot" wrapText="true" />
<RadioButton fx:id="rb4" layoutX="472.0" layoutY="530.0" mnemonicParsing="false" text="Referendum" toggleGroup="$vot" />
<Button layoutX="278.0" layoutY="662.0" mnemonicParsing="false" onMouseClicked="#addVotClicked" text="Crea" />
<Separator layoutX="27.0" layoutY="473.0" prefHeight="5.0" prefWidth="543.0" />
<TextField fx:id="nomeVotazione" layoutX="88.0" layoutY="628.0" prefHeight="25.0" prefWidth="414.0" />
<Label layoutX="86.0" layoutY="611.0" text="Nome o descrizione" />
<Button fx:id="logoutButton" layoutX="501.0" layoutY="25.0" mnemonicParsing="false" onMouseClicked="#logoutClicked" text="Logout" />
<Button layoutX="374.0" layoutY="25.0" mnemonicParsing="false" onMouseClicked="#viewSessionsClicked" text="View Sessions" />
<Button layoutX="256.0" layoutY="25.0" mnemonicParsing="false" onMouseClicked="#registrationClicked" text="Registrazione" />
<RadioButton fx:id="quorumSi" layoutX="246.0" layoutY="587.0" mnemonicParsing="false" text="SI">
<toggleGroup>
<ToggleGroup fx:id="quorum" />
</toggleGroup>
</RadioButton>
<RadioButton fx:id="quorumNo" layoutX="312.0" layoutY="587.0" mnemonicParsing="false" selected="true" text="NO" toggleGroup="$quorum" />
<Label layoutX="268.0" layoutY="562.0" text="QUORUM" />
</children>
</AnchorPane>
18 changes: 18 additions & 0 deletions swengProg/bin/graphicPages/CategoricalVotePage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.AnchorPane?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="460.0" prefWidth="675.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.CategoricalVotePage">
<children>
<Button fx:id="backButton" layoutX="277.0" layoutY="17.0" mnemonicParsing="false" onMouseClicked="#backClicked" text="Indietro" />
<ListView fx:id="sessionFList" layoutX="41.0" layoutY="69.0" onMouseClicked="#sessionFClicked" prefHeight="262.0" prefWidth="252.0" />
<Label fx:id="title" layoutX="41.0" layoutY="23.0" text="Elezioni" />
<Button fx:id="confirmButton" disable="true" layoutX="561.0" layoutY="390.0" mnemonicParsing="false" onMouseClicked="#confirmClicked" text="Conferma" />
<ListView fx:id="sessionCList" layoutX="344.0" layoutY="69.0" onMouseClicked="#sessionCClicked" prefHeight="262.0" prefWidth="252.0" />
<Label layoutX="41.0" layoutY="52.0" text="Partiti" />
<Label layoutX="344.0" layoutY="52.0" text="Candidati" />
</children>
</AnchorPane>
19 changes: 19 additions & 0 deletions swengProg/bin/graphicPages/CategoricalVotePrefPage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.AnchorPane?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="460.0" prefWidth="675.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.CategoricalVotePrefPage">
<children>
<Button fx:id="backButton" layoutX="277.0" layoutY="17.0" mnemonicParsing="false" onMouseClicked="#backClicked" text="Indietro" />
<ListView fx:id="sessionFList" layoutX="41.0" layoutY="69.0" onMouseClicked="#sessionFClicked" prefHeight="262.0" prefWidth="252.0" />
<Label fx:id="title" layoutX="41.0" layoutY="23.0" text="Elezioni" />
<Button fx:id="confirmButton" layoutX="561.0" layoutY="390.0" disable="true" mnemonicParsing="false" onMouseClicked="#confirmClicked" text="Conferma" />
<ListView fx:id="sessionCList" layoutX="344.0" layoutY="69.0" onMouseClicked="#sessionCClicked" prefHeight="262.0" prefWidth="252.0" />
<Label layoutX="41.0" layoutY="52.0" text="Partiti" />
<Label layoutX="344.0" layoutY="52.0" text="Candidati" />
</children>
</AnchorPane>

24 changes: 24 additions & 0 deletions swengProg/bin/graphicPages/LoginPage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane prefHeight="314.0" prefWidth="402.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.LoginPage">
<children>
<TextField fx:id="email" layoutX="127.0" layoutY="87.0" />
<PasswordField fx:id="password" layoutX="127.0" layoutY="145.0" onKeyPressed="#checkEnter" />
<Label layoutX="158.0" layoutY="26.0" text="Login Page">
<font>
<Font size="18.0" />
</font>
</Label>
<Label layoutX="127.0" layoutY="70.0" text="Email" />
<Label layoutX="128.0" layoutY="128.0" text="Password" />
<Button layoutX="179.0" layoutY="194.0" mnemonicParsing="false" onMouseClicked="#loginClick" text="Login" />
<Label fx:id="loginMessage" alignment="CENTER" contentDisplay="CENTER" layoutX="188.0" layoutY="246.0" prefHeight="17.0" />
</children>
</AnchorPane>
29 changes: 29 additions & 0 deletions swengProg/bin/graphicPages/MainPage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="503.0" prefWidth="695.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.ElectorPage">
<children>
<ListView fx:id="sessionList" layoutX="39.0" layoutY="94.0" onMouseClicked="#sessionClick" prefHeight="301.0" prefWidth="617.0" />
<Label layoutX="29.0" layoutY="14.0" text="Sistema di votazione digitale">
<font>
<Font name="System Bold" size="18.0" />
</font>
</Label>
<Label layoutX="39.0" layoutY="61.0" text="Sessioni di voto disponibili">
<font>
<Font size="16.0" />
</font>
</Label>
<Label fx:id="sessionStatus" layoutX="39.0" layoutY="426.0" />
<Button fx:id="voteButton" disable="true" layoutX="604.0" layoutY="422.0" mnemonicParsing="false" onMouseClicked="#voteClick" text="Vota" />
<Button layoutX="604.0" layoutY="15.0" mnemonicParsing="false" onMouseClicked="#logoutClicked" text="Logout" />
<Button fx:id="adminButton" layoutX="521.0" layoutY="15.0" mnemonicParsing="false" onMouseClicked="#adminClicked" text="Admin" visible="false" />
<Label fx:id="name" layoutX="521.0" layoutY="65.0" />
<Button fx:id="terminateButton" layoutX="546.0" layoutY="464.0" mnemonicParsing="false" onMouseClicked="#terminateClicked" text="Termina Votazione" visible="false" />
</children>
</AnchorPane>
29 changes: 29 additions & 0 deletions swengProg/bin/graphicPages/OrdinalVotePage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="460.0" prefWidth="675.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.OrdinalVotePage">
<children>
<Button fx:id="backButton" layoutX="277.0" layoutY="17.0" mnemonicParsing="false" onMouseClicked="#backClicked" text="Indietro" />
<ListView fx:id="sessionFList" layoutX="41.0" layoutY="69.0" onMouseClicked="#sessionFClicked" prefHeight="262.0" prefWidth="245.0" />
<Label fx:id="title" layoutX="41.0" layoutY="23.0" text="Elezioni" />
<Button layoutX="561.0" layoutY="390.0" fx:id="confirmButton" disable="true" mnemonicParsing="false" onMouseClicked="#confirmClicked" text="Conferma" />
<ListView fx:id="sessionCList" layoutX="313.0" layoutY="69.0" onMouseClicked="#sessionCClicked" prefHeight="262.0" prefWidth="261.0" />
<Button fx:id="upC" disable="true" layoutX="595.0" layoutY="92.0" mnemonicParsing="false" onMouseClicked="#upCClicked" text="Su">
<font>
<Font size="15.0" />
</font>
</Button>
<Button fx:id="downC" disable="true" layoutX="586.0" layoutY="274.0" mnemonicParsing="false" onMouseClicked="#downCClicked" text="Giù">
<font>
<Font size="15.0" />
</font>
</Button>
<Label layoutX="41.0" layoutY="52.0" text="Partiti" />
<Label layoutX="312.0" layoutY="52.0" text="Candidati" />
</children>
</AnchorPane>
29 changes: 29 additions & 0 deletions swengProg/bin/graphicPages/ReferendumVotePage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="487.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.ReferendumVotePage">
<children>
<Button fx:id="backButton" layoutX="277.0" layoutY="17.0" mnemonicParsing="false" onMouseClicked="#backClicked" text="Indietro" />
<Button fx:id="si" layoutX="114.0" layoutY="168.0" mnemonicParsing="false" onMouseClicked="#siClicked" text="SI">
<font>
<Font name="System Bold" size="30.0" />
</font>
</Button>
<Button fx:id="no" layoutX="292.0" layoutY="168.0" mnemonicParsing="false" onMouseClicked="#noClicked" text="NO">
<font>
<Font name="System Bold" size="30.0" />
</font>
</Button>
<Button fx:id="confirmButton" disable="true" layoutX="378.0" layoutY="337.0" mnemonicParsing="false" onMouseClicked="#confirmClicked" text="Conferma" />
<Label fx:id="sessionStatus" layoutX="48.0" layoutY="36.0" text="Referendum">
<font>
<Font size="18.0" />
</font>
</Label>
<Label fx:id="title" layoutX="48.0" layoutY="81.0" />
</children>
</AnchorPane>
39 changes: 39 additions & 0 deletions swengProg/bin/graphicPages/RegistrationPage.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="506.0" prefWidth="348.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pages.RegistrationPage">
<children>
<TextField fx:id="name" layoutX="100.0" layoutY="87.0" />
<Label layoutX="110.0" layoutY="14.0" text="Registrazione">
<font>
<Font name="System Bold" size="20.0" />
</font>
</Label>
<TextField fx:id="surname" layoutX="100.0" layoutY="144.0" />
<TextField fx:id="cf" layoutX="101.0" layoutY="212.0" />
<RadioButton fx:id="elector" layoutX="71.0" layoutY="397.0" mnemonicParsing="false" selected="true" text="Elettore">
<toggleGroup>
<ToggleGroup fx:id="type" />
</toggleGroup>
</RadioButton>
<RadioButton fx:id="admin" layoutX="223.0" layoutY="397.0" mnemonicParsing="false" text="Admin" toggleGroup="$type" />
<Button fx:id="createButton" layoutX="154.0" layoutY="445.0" mnemonicParsing="false" onMouseClicked="#createClicked" text="Crea" />
<Button fx:id="backButton" layoutX="277.0" layoutY="17.0" mnemonicParsing="false" onMouseClicked="#backClicked" text="Indietro" />
<Label layoutX="96.0" layoutY="70.0" text="Nome" />
<Label layoutX="100.0" layoutY="127.0" text="Cognome" />
<Label layoutX="101.0" layoutY="195.0" text="Codice fiscale" />
<TextField fx:id="email" layoutX="73.0" layoutY="286.0" prefHeight="25.0" prefWidth="201.0" />
<TextField fx:id="password" layoutX="75.0" layoutY="344.0" prefHeight="25.0" prefWidth="201.0" />
<Label layoutX="72.0" layoutY="269.0" text="Email" />
<Label layoutX="73.0" layoutY="327.0" text="Password" />
<Separator layoutX="10.0" layoutY="255.0" prefHeight="2.0" prefWidth="329.0" />
</children>
</AnchorPane>
1 change: 1 addition & 0 deletions swengProg/bin/graphicPages/application.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
Binary file added swengProg/bin/module-info.class
Binary file not shown.
Binary file added swengProg/bin/pages/AdminPage.class
Binary file not shown.
Binary file added swengProg/bin/pages/CategoricalVotePage.class
Binary file not shown.
Binary file added swengProg/bin/pages/CategoricalVotePrefPage.class
Binary file not shown.
Binary file added swengProg/bin/pages/ElectorPage.class
Binary file not shown.
Binary file added swengProg/bin/pages/LoginPage.class
Binary file not shown.
Binary file added swengProg/bin/pages/OrdinalVotePage.class
Binary file not shown.
Binary file added swengProg/bin/pages/Pages.class
Binary file not shown.
Binary file added swengProg/bin/pages/ReferendumVotePage.class
Binary file not shown.
Binary file added swengProg/bin/pages/RegistrationPage.class
Binary file not shown.
8 changes: 8 additions & 0 deletions swengProg/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="provaJfx"/>
<info/>
</deploy>
<signjar/>
</anttasks:AntTask>
Loading

0 comments on commit 1cf23bc

Please sign in to comment.