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
9507a68f
Commit
9507a68f
authored
1 year ago
by
Anders Emil Bergan
Browse files
Options
Downloads
Patches
Plain Diff
finished the new window that comes after duoInfo in new budget option
parent
f95d7d16
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
#215873
failed
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/newBudgetBudgert.fxml
+230
-0
230 additions, 0 deletions
src/main/resources/view/newBudgetBudgert.fxml
with
230 additions
and
0 deletions
src/main/resources/view/newBudgetBudgert.fxml
0 → 100644
+
230
−
0
View file @
9507a68f
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.chart.PieChart?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.ContextMenu?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?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.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.BudgetController"
>
<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>
<children>
<GridPane
prefHeight=
"479.0"
prefWidth=
"690.0"
>
<VBox.margin>
<Insets
left=
"30.0"
right=
"30.0"
/>
</VBox.margin>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
/>
</columnConstraints>
<rowConstraints>
<RowConstraints
maxHeight=
"281.36448669433594"
minHeight=
"10.0"
prefHeight=
"90.96714782714844"
vgrow=
"SOMETIMES"
/>
<RowConstraints
maxHeight=
"424.19301986694336"
minHeight=
"10.0"
prefHeight=
"388.03285217285156"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<VBox
GridPane.rowIndex=
"1"
>
<children>
<GridPane
prefHeight=
"473.0"
prefWidth=
"1055.0"
>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
maxWidth=
"600.0"
minWidth=
"10.0"
prefWidth=
"120.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
</columnConstraints>
<rowConstraints>
<RowConstraints
maxHeight=
"443.18585205078125"
minHeight=
"10.0"
prefHeight=
"53.365501403808594"
vgrow=
"SOMETIMES"
/>
<RowConstraints
maxHeight=
"443.18585205078125"
minHeight=
"10.0"
prefHeight=
"325.1344985961914"
vgrow=
"SOMETIMES"
/>
<RowConstraints
maxHeight=
"230.78009033203125"
minHeight=
"10.0"
prefHeight=
"48.083740234375"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<HBox
alignment=
"CENTER"
spacing=
"10.0"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"1"
>
<children>
<PieChart
fx:id=
"budgetPieChart"
legendSide=
"RIGHT"
maxHeight=
"444.0"
maxWidth=
"512.0"
prefHeight=
"302.0"
prefWidth=
"354.0"
/>
</children>
</HBox>
<StackPane
alignment=
"CENTER_LEFT"
prefWidth=
"375.0"
GridPane.rowIndex=
"2"
GridPane.rowSpan=
"2147483647"
>
<children>
<Rectangle
arcHeight=
"5.0"
arcWidth=
"5.0"
fill=
"#f8f8f8"
height=
"26.0"
stroke=
"#d9cccc"
strokeLineCap=
"ROUND"
strokeType=
"INSIDE"
width=
"350.0"
/>
<HBox
alignment=
"CENTER_LEFT"
minHeight=
"15.0"
prefHeight=
"36.0"
prefWidth=
"345.0"
>
<children>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Overview: (used of disposal)"
>
<HBox.margin>
<Insets
left=
"3.0"
/>
</HBox.margin>
<font>
<Font
size=
"14.0"
/>
</font>
</Text>
</children>
</HBox>
</children>
</StackPane>
<HBox
alignment=
"CENTER_RIGHT"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"2"
>
<children>
<Button
fx:id=
"returnBtn1"
mnemonicParsing=
"false"
onAction=
"#returnToMainMenu"
prefWidth=
"100.0"
text=
"Back"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Button>
<Button
fx:id=
"returnBtn2"
mnemonicParsing=
"false"
onAction=
"#returnToMainMenu"
prefWidth=
"100.0"
text=
"Continue"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Button>
</children>
</HBox>
<GridPane>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
</columnConstraints>
<rowConstraints>
<RowConstraints
minHeight=
"10.0"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<HBox
alignment=
"CENTER_LEFT"
prefHeight=
"100.0"
prefWidth=
"200.0"
spacing=
"10.0"
>
<children>
<Button
fx:id=
"addBtn"
mnemonicParsing=
"false"
onAction=
"#handleAddBtn"
prefHeight=
"25.0"
prefWidth=
"60.0"
>
<font>
<Font
name=
"Lucida Console"
size=
"12.0"
/>
</font>
<graphic>
<ImageView
fitHeight=
"20.0"
fitWidth=
"40.0"
pickOnBounds=
"true"
preserveRatio=
"true"
>
<image>
<Image
url=
"@../Images/add.png"
/>
</image>
</ImageView>
</graphic>
</Button>
<Button
fx:id=
"editBtn"
mnemonicParsing=
"false"
onAction=
"#handleEditBtn"
prefHeight=
"25.0"
prefWidth=
"60.0"
>
<font>
<Font
name=
"Lucida Console"
size=
"12.0"
/>
</font>
<graphic>
<ImageView
fitHeight=
"20.0"
fitWidth=
"40.0"
pickOnBounds=
"true"
preserveRatio=
"true"
>
<image>
<Image
url=
"@../Images/edit.png"
/>
</image>
</ImageView>
</graphic>
</Button>
<Button
fx:id=
"deleteBtn"
mnemonicParsing=
"false"
onAction=
"#handleDeleteBtn"
prefHeight=
"25.0"
prefWidth=
"60.0"
>
<font>
<Font
name=
"Lucida Console"
size=
"12.0"
/>
</font>
<graphic>
<ImageView
fitHeight=
"20.0"
fitWidth=
"40.0"
pickOnBounds=
"true"
preserveRatio=
"true"
>
<image>
<Image
url=
"@../Images/delete.png"
/>
</image>
</ImageView>
</graphic>
</Button>
</children>
</HBox>
<HBox
alignment=
"CENTER_LEFT"
GridPane.columnIndex=
"1"
>
<children>
<ComboBox
fx:id=
"filter"
prefHeight=
"20.0"
prefWidth=
"180.0"
promptText=
"Show"
>
<opaqueInsets>
<Insets
/>
</opaqueInsets>
</ComboBox>
</children>
</HBox>
</children>
</GridPane>
<HBox
alignment=
"CENTER"
GridPane.columnIndex=
"1"
>
<children>
<Label
alignment=
"CENTER"
prefHeight=
"20.0"
prefWidth=
"533.0"
text=
"Amount at disposal: 1000"
>
<font>
<Font
size=
"24.0"
/>
</font>
</Label>
</children>
</HBox>
<TableView
fx:id=
"budgetTableView"
maxHeight=
"450.0"
prefHeight=
"305.0"
prefWidth=
"340.0"
GridPane.rowIndex=
"1"
>
<columns>
<TableColumn
fx:id=
"categoryCol"
prefWidth=
"75.0"
text=
"Category"
/>
<TableColumn
fx:id=
"amountCol"
prefWidth=
"75.0"
text=
"Amount"
/>
<TableColumn
fx:id=
"descriptionCol"
prefWidth=
"75.0"
text=
"Description"
/>
</columns>
<columnResizePolicy>
<TableView
fx:constant=
"CONSTRAINED_RESIZE_POLICY"
/>
</columnResizePolicy>
<contextMenu>
<ContextMenu>
<items>
<MenuItem
mnemonicParsing=
"false"
text=
"Unspecified Action"
/>
</items>
</ContextMenu>
</contextMenu>
</TableView>
</children>
<padding>
<Insets
left=
"10.0"
/>
</padding>
</GridPane>
</children>
</VBox>
<GridPane>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
</columnConstraints>
<rowConstraints>
<RowConstraints
minHeight=
"10.0"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<Button
fx:id=
"returnBtn"
alignment=
"CENTER"
mnemonicParsing=
"false"
onAction=
"#returnToMainMenu"
text=
"Return to Main Menu"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Button>
<Label
fx:id=
"title"
text=
"Budget Setup"
textAlignment=
"CENTER"
GridPane.columnIndex=
"1"
>
<font>
<Font
size=
"36.0"
/>
</font>
</Label>
<StackPane
GridPane.columnIndex=
"2"
>
<children>
<DatePicker
fx:id=
"date"
prefWidth=
"175.0"
/>
<Label
fx:id=
"daysLeftLbl"
text=
"Days left: 31"
>
<font>
<Font
name=
"Lucida Console"
size=
"14.0"
/>
</font>
</Label>
</children>
</StackPane>
</children>
</GridPane>
</children>
</GridPane>
</children>
</VBox>
</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