Skip to content

Commit

Permalink
add dialog scene fxml + start dashboard scene fxml
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienSmagghe committed Jun 27, 2020
1 parent c9cc96e commit 27b732b
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Default ignored files
.idea/
workspace.xml
47 changes: 47 additions & 0 deletions Project/Lib/BitcoinApp/src/fxml/dashboardScene.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.NumberAxis?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.layout.BorderPane?>

<BorderPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="0.0" minWidth="0.0" prefHeight="300.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="dashboardSceneController">
<top>
<MenuBar fx:id="menuBar" BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
<MenuItem fx:id="MenuItemExportSQL" mnemonicParsing="false" onAction="#exportSQL" text="Export SQL" />
<MenuItem fx:id="MenuItemExportSQLMenuItemExportCSV" mnemonicParsing="false" onAction="#exportCSV" text="Export CSV" />
<MenuItem fx:id="MenuItemExportSQLMenuItemExportPDF" mnemonicParsing="false" onAction="#exportPDF" text="Export PDF" />
<MenuItem fx:id="MenuItemExportSQLMenuItemExportEXCEL" mnemonicParsing="false" onAction="#exportEXCEL" text="Import EXCEL" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem fx:id="editOption" mnemonicParsing="false" onAction="#OpenOptionDialog" text="Edit options" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<center>
<LineChart prefHeight="293.0" prefWidth="319.0" BorderPane.alignment="CENTER">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
</center>
</BorderPane>
109 changes: 109 additions & 0 deletions Project/Lib/BitcoinApp/src/fxml/dialogOptions.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.ButtonType?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.DialogPane?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Slider?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<DialogPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="375.0" prefWidth="481.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="DialogOptionsController">
<expandableContent>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="200.0" prefWidth="320.0" />
</expandableContent>
<graphic>
<BorderPane prefHeight="200.0" prefWidth="200.0">
<top>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Options" BorderPane.alignment="TOP_LEFT">
<BorderPane.margin>
<Insets left="20.0" right="20.0" top="20.0" />
</BorderPane.margin>
<font>
<Font size="20.0" />
</font>
</Text>
</top>
<center>
<FlowPane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<Line endX="100.0" startX="-100.0">
<FlowPane.margin>
<Insets bottom="10.0" />
</FlowPane.margin>
</Line>
<Label text="Currency">
<graphic>
<ChoiceBox fx:id="currencyOption" onInputMethodTextChanged="#updateCurrency" prefWidth="150.0" />
</graphic>
<FlowPane.margin>
<Insets bottom="10.0" />
</FlowPane.margin>
</Label>
<Label text="Top threshold">
<graphic>
<Slider fx:id="topThreshold" onInputMethodTextChanged="#updateTopThreshold" />
</graphic>
<FlowPane.margin>
<Insets bottom="10.0" />
</FlowPane.margin>
</Label>
<Label text="Low threshold">
<graphic>
<Slider fx:id="lowThreshold" onInputMethodTextChanged="#updateLowThreshold" />
</graphic>
<FlowPane.margin>
<Insets bottom="10.0" />
</FlowPane.margin>
</Label>
<Label text="Scale">
<graphic>
<ChoiceBox fx:id="scaleOption" onInputMethodTextChanged="#updateScale" prefWidth="150.0" />
</graphic>
<FlowPane.margin>
<Insets bottom="10.0" />
</FlowPane.margin>
</Label>
<Label text="Smart bounds">
<graphic>
<ChoiceBox fx:id="smartBoundsOption" onInputMethodTextChanged="#updateSmartBound" prefWidth="150.0" />
</graphic>
<padding>
<Insets bottom="10.0" />
</padding>
</Label>
<Label text="Start date">
<graphic>
<DatePicker fx:id="startDate" onAction="#updateStartDate" onInputMethodTextChanged="#updateStartDate" />
</graphic>
<FlowPane.margin>
<Insets bottom="10.0" />
</FlowPane.margin>
</Label>
<Label text="End date">
<graphic>
<DatePicker fx:id="endDate" onAction="#updateEndDate" />
</graphic>
</Label>
</children>
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="10.0" />
</padding>
<BorderPane.margin>
<Insets />
</BorderPane.margin>
</FlowPane>
</center>
</BorderPane>
</graphic>
<buttonTypes>
<ButtonType fx:constant="CLOSE" />
<ButtonType fx:constant="OK" />
</buttonTypes>
</DialogPane>

0 comments on commit 27b732b

Please sign in to comment.