diff --git a/src/main/resources/view/DuoInfo.fxml b/src/main/resources/view/DuoInfo.fxml new file mode 100644 index 0000000000000000000000000000000000000000..7a583661f95fa582946eefa2bfe522e64efef10c --- /dev/null +++ b/src/main/resources/view/DuoInfo.fxml @@ -0,0 +1,212 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<?import javafx.geometry.Insets?> +<?import javafx.scene.Cursor?> +<?import javafx.scene.control.Button?> +<?import javafx.scene.control.ComboBox?> +<?import javafx.scene.control.MenuButton?> +<?import javafx.scene.control.MenuItem?> +<?import javafx.scene.control.TableColumn?> +<?import javafx.scene.control.TableView?> +<?import javafx.scene.image.Image?> +<?import javafx.scene.image.ImageView?> +<?import javafx.scene.layout.AnchorPane?> +<?import javafx.scene.layout.ColumnConstraints?> +<?import javafx.scene.layout.GridPane?> +<?import javafx.scene.layout.HBox?> +<?import javafx.scene.layout.Region?> +<?import javafx.scene.layout.RowConstraints?> +<?import javafx.scene.layout.StackPane?> +<?import javafx.scene.layout.VBox?> +<?import javafx.scene.shape.Rectangle?> +<?import javafx.scene.text.Font?> +<?import javafx.scene.text.Text?> + +<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="750.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="no.ntnu.idatt1002.demo.controller.ExpensesController"> + <children> + <ImageView fitHeight="500.0" fitWidth="750.0" pickOnBounds="true"> + <image> + <Image url="@../Images/backgroundMini.jpg" /> + </image> + <cursor> + <Cursor fx:constant="DEFAULT" /> + </cursor> + </ImageView> + <VBox layoutX="60.0" layoutY="77.0"> + <children> + <GridPane prefHeight="400.0" prefWidth="600.0"> + <columnConstraints> + <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="550.0" prefWidth="550.0" /> + <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="80.0" prefWidth="80.0" /> + </columnConstraints> + <rowConstraints> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" /> + </rowConstraints> + <children> + <HBox alignment="CENTER" prefHeight="300.0" prefWidth="600.0" spacing="30.0" GridPane.columnSpan="2" GridPane.rowIndex="1"> + <children> + <VBox> + <children> + <StackPane> + <children> + <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#f8f8f8" height="18.0" stroke="#d9cccc" strokeType="INSIDE" width="300.0" /> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Income" /> + </children> + </StackPane> + <StackPane> + <children> + <TableView fx:id="expenseTableView" minWidth="300.0" prefHeight="260.0" prefWidth="485.0"> + <columns> + <TableColumn fx:id="dateColumn" prefWidth="75.0" text="Date" /> + <TableColumn fx:id="amountColumn" prefWidth="75.0" text="Amount" /> + <TableColumn fx:id="categoryColumn" prefWidth="75.0" text="Category" /> + <TableColumn fx:id="descriptionColumn" prefWidth="75.0" text="Description" /> + <TableColumn fx:id="recurringColumn" prefWidth="75.0" text="Recurring" /> + </columns> + <columnResizePolicy> + <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" /> + </columnResizePolicy> + </TableView> + <Rectangle arcHeight="5.0" arcWidth="5.0" disable="true" fill="LIME" height="234.0" opacity="0.1" stroke="#d9cccc" strokeType="INSIDE" translateY="13.0" width="300.0" /> + </children> + </StackPane> + <StackPane> + <children> + <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#f8f8f8" height="18.0" stroke="#d9cccc" strokeType="INSIDE" width="300.0" StackPane.alignment="TOP_LEFT" /> + <HBox prefHeight="18.0" prefWidth="517.0"> + <children> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Sum: "> + <HBox.margin> + <Insets left="2.0" /> + </HBox.margin> + </Text> + <Region prefHeight="18.0" prefWidth="74.0" /> + <Text fx:id="sum" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" /> + </children> + </HBox> + </children> + </StackPane> + </children> + </VBox> + <VBox> + <children> + <StackPane> + <children> + <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#f8f8f8" height="18.0" stroke="#d9cccc" strokeType="INSIDE" width="300.0" /> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Expenses" /> + </children> + </StackPane> + <StackPane> + <children> + <TableView fx:id="expenseTableView1" minWidth="300.0" prefHeight="260.0" prefWidth="485.0"> + <columns> + <TableColumn fx:id="dateColumn1" prefWidth="75.0" text="Date" /> + <TableColumn fx:id="amountColumn1" prefWidth="75.0" text="Amount" /> + <TableColumn fx:id="categoryColumn1" prefWidth="75.0" text="Category" /> + <TableColumn fx:id="descriptionColumn1" prefWidth="75.0" text="Description" /> + <TableColumn fx:id="recurringColumn1" prefWidth="75.0" text="Recurring" /> + </columns> + <columnResizePolicy> + <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" /> + </columnResizePolicy> + </TableView> + <Rectangle arcHeight="5.0" arcWidth="5.0" disable="true" fill="RED" height="234.0" opacity="0.1" stroke="RED" strokeType="INSIDE" translateY="13.0" width="300.0" /> + </children> + </StackPane> + <StackPane> + <children> + <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#f8f8f8" height="18.0" stroke="#d9cccc" strokeType="INSIDE" width="300.0" StackPane.alignment="TOP_LEFT" /> + <HBox prefHeight="18.0" prefWidth="517.0"> + <children> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Sum: "> + <HBox.margin> + <Insets left="2.0" /> + </HBox.margin> + </Text> + <Region prefHeight="18.0" prefWidth="74.0" /> + <Text fx:id="sum1" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" /> + </children> + </HBox> + </children> + </StackPane> + </children> + </VBox> + </children> + </HBox> + <HBox alignment="CENTER_LEFT" prefWidth="410.0" spacing="5.0"> + <children> + <MenuButton mnemonicParsing="false" text="MenuButton"> + <items> + <MenuItem mnemonicParsing="false" onAction="#addIncome" text="Income" /> + <MenuItem mnemonicParsing="false" onAction="#addExpense" text="Expense" /> + </items> + <graphic> + <ImageView fitHeight="19.0" fitWidth="16.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../Images/add_image.png" /> + </image> + </ImageView> + </graphic> + </MenuButton> + </children> + <opaqueInsets> + <Insets /> + </opaqueInsets> + <padding> + <Insets bottom="5.0" /> + </padding> + </HBox> + <VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0" spacing="5.0" GridPane.columnIndex="1"> + <children> + <ComboBox fx:id="show" prefWidth="150.0" promptText="Show"> + <opaqueInsets> + <Insets /> + </opaqueInsets> + <VBox.margin> + <Insets bottom="5.0" /> + </VBox.margin> + </ComboBox> + </children> + </VBox> + <Button mnemonicParsing="false" onAction="#switchScene" prefWidth="150.0" text="Continue" GridPane.columnIndex="1" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets bottom="5.0" /> + </GridPane.margin> + </Button> + <StackPane alignment="CENTER_LEFT" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="CENTER"> + <children> + <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#f8f8f8" height="26.0" stroke="#d9cccc" strokeLineCap="ROUND" strokeType="INSIDE" width="550.0" StackPane.alignment="CENTER_LEFT"> + <StackPane.margin> + <Insets bottom="4.0" /> + </StackPane.margin> + </Rectangle> + <HBox alignment="CENTER_LEFT" minHeight="15.0" prefHeight="18.0" prefWidth="510.0"> + <children> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Total Disbosable Amount: "> + <HBox.margin> + <Insets left="3.0" /> + </HBox.margin> + </Text> + <Region prefHeight="18.0" prefWidth="100.0" /> + <Text fx:id="sum11" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" /> + </children> + <StackPane.margin> + <Insets bottom="4.0" /> + </StackPane.margin> + </HBox> + </children> + </StackPane> + </children> + </GridPane> + </children> + </VBox> + <Button layoutX="14.0" layoutY="14.0" mnemonicParsing="false" text="Return" /> + <Text layoutX="197.0" layoutY="60.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Income/Expenses" textAlignment="CENTER"> + <font> + <Font size="48.0" /> + </font> + </Text> + </children> +</AnchorPane>