Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt1002_2023_9
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Kluge Svendsrud
idatt1002_2023_9
Commits
c2399581
Commit
c2399581
authored
1 year ago
by
Harry Linrui XU
Browse files
Options
Downloads
Patches
Plain Diff
Created window for the first income and expense scene
parent
faed44ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!43
Merging frontend-testing into master
,
!38
"Made progressbar dynamic in accordance to spending. Added balance field....
,
!37
Made the sub progress bars respond to changes in expense
Pipeline
#214711
passed
1 year ago
Stage: build
Stage: test
Stage: package
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/view/DuoInfo.fxml
+212
-0
212 additions, 0 deletions
src/main/resources/view/DuoInfo.fxml
with
212 additions
and
0 deletions
src/main/resources/view/DuoInfo.fxml
0 → 100644
+
212
−
0
View file @
c2399581
<?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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment