1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-18 08:29:33 -08:00
Abacus/src/main/resources/abacus.fxml

59 lines
2.8 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
2017-07-31 17:08:16 -07:00
<?import javafx.geometry.Insets?>
2017-07-31 17:18:08 -07:00
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.GridPane?>
<BorderPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="org.nwapw.abacus.fx.AbacusController">
<center>
<TabPane>
2017-07-31 17:08:16 -07:00
<Tab text="Calculator" closable="false">
<BorderPane>
2017-07-31 22:29:44 -07:00
<center>
<TableView fx:id="historyTable">
2017-08-01 09:25:13 -07:00
<columnResizePolicy>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
</columnResizePolicy>
2017-07-31 22:29:44 -07:00
<columns>
<TableColumn fx:id="inputColumn" text="Input" sortable="false"/>
<TableColumn fx:id="parsedColumn" text="Parsed" sortable="false"/>
<TableColumn fx:id="outputColumn" text="Output" sortable="false"/>
</columns>
</TableView>
</center>
2017-07-31 17:08:16 -07:00
<bottom>
<VBox>
<ScrollPane prefHeight="50" vbarPolicy="NEVER">
2017-07-31 17:18:08 -07:00
<padding>
<Insets top="10" bottom="10" left="10" right="10"/>
</padding>
<Text fx:id="outputText"/>
2017-07-31 17:08:16 -07:00
</ScrollPane>
<TextField fx:id="inputField" onAction="#performCalculation"/>
2017-07-31 17:18:08 -07:00
<Button fx:id="inputButton" text="Calculate" maxWidth="Infinity"
onAction="#performCalculation"/>
2017-07-31 17:08:16 -07:00
</VBox>
</bottom>
</BorderPane>
</Tab>
<Tab text="Settings" closable="false">
<GridPane hgap="10" vgap="10">
<padding><Insets left="10" right="10" top="10" bottom="10"/></padding>
<Label text="Number Implementation" GridPane.columnIndex="0" GridPane.rowIndex="0"/>
<ComboBox fx:id="numberImplementationBox" GridPane.columnIndex="1" GridPane.rowIndex="0"/>
<ListView fx:id="enabledPluginView"
GridPane.rowIndex="1" GridPane.columnIndex="0"
GridPane.columnSpan="2" maxHeight="100"/>
<Button fx:id="reloadButton" text="Reload" GridPane.rowIndex="2" GridPane.columnIndex="0"/>
</GridPane>
</Tab>
</TabPane>
</center>
</BorderPane>