icf300/src/main/resources/guru/dead/icf320/home-view.fxml

100 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.VBox?>
<?import org.controlsfx.glyphfont.Glyph?>
<?import org.controlsfx.control.StatusBar?>
<?import javafx.scene.control.SeparatorMenuItem?>
<BorderPane xmlns="http://javafx.com/javafx/18.0.2" xmlns:fx="http://javafx.com/fxml/1" fx:controller="guru.dead.icf320.MainController">
<!-- Menubar on the top -->
<top>
<MenuBar>
<menus>
<Menu text="File">
<items>
<MenuItem onAction="#onOpenItemClick" text="Open">
<graphic>
<Glyph fontFamily="FontAwesome" icon="FOLDER_OPEN"/>
</graphic>
</MenuItem>
<MenuItem onAction="#onExitClick" text="Exit">
<graphic>
<Glyph fontFamily="FontAwesome" icon="CLOSE"/>
</graphic>
</MenuItem>
</items>
</Menu>
<Menu text="Clone">
<items>
<MenuItem onAction="#cloneReadItem" text="Read">
<graphic>
<Glyph fontFamily="FontAwesome" icon="DOWNLOAD"/>
</graphic>
</MenuItem>
<SeparatorMenuItem/>
<MenuItem onAction="#onCloneWriteItemClick" text="Write">
<graphic>
<Glyph fontFamily="FontAwesome" icon="UPLOAD"/>
</graphic>
</MenuItem>
<MenuItem fx:id="cloneRawItem" onAction="#onCloneRawItemClick" text="Raw">
<graphic>
<Glyph fontFamily="FontAwesome" icon="TERMINAL"/>
</graphic>
</MenuItem>
</items>
</Menu>
<Menu fx:id="comPortMenu" text="COM Ports">
</Menu>
<Menu text="Settings">
<items>
<Menu fx:id="settingsReadTime" text="Read Time"> </Menu>
</items>
</Menu>
<Menu text="Help">
<items>
<MenuItem text="About" onAction="#onAboutMenuItemClick">
<graphic>
<Glyph fontFamily="FontAwesome" icon="INFO"/>
</graphic>
</MenuItem>
</items>
</Menu>
</menus>
</MenuBar>
</top>
<!-- Content in the center -->
<center>
<VBox alignment="CENTER" spacing="20.0">
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
</padding>
<TextArea fx:id="outputArea" editable="false" promptText="logger has to output here" />
<Button cancelButton="true" onAction="#onClearButtonClick" text="Clear" />
</VBox>
</center>
<bottom>
<StatusBar fx:id="mainStatusBar" text="">
<leftItems>
<Label fx:id="filePath" text="No file." />
</leftItems>
<rightItems>
<Label fx:id="welcomeText" text="Select COM port" />
</rightItems>
</StatusBar>
</bottom>
</BorderPane>