Add Menubar items

This commit is contained in:
Oystein Kristoffer Tveit 2021-02-19 15:13:04 +01:00
parent 975503417f
commit d10667c193
1 changed files with 32 additions and 1 deletions

View File

@ -3,6 +3,8 @@
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.SeparatorMenuItem?>
<MenuBar
prefHeight="25.0"
@ -12,16 +14,45 @@
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="New File" />
<MenuItem mnemonicParsing="false" text="New Folder" />
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Open File" />
<MenuItem mnemonicParsing="false" text="Open Project" />
<MenuItem mnemonicParsing="false" text="Close" />
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Save" />
<MenuItem mnemonicParsing="false" text="Save as" />
<SeparatorMenuItem/>
<Menu mnemonicParsing="false" text="Change programming language" >
<items>
<MenuItem mnemonicParsing="false" text="Java" />
<MenuItem mnemonicParsing="false" text="Markdown" />
</items>
</Menu>
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Exit" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
<MenuItem mnemonicParsing="false" text="Undo" />
<MenuItem mnemonicParsing="false" text="Redo" />
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Cut" />
<MenuItem mnemonicParsing="false" text="Copy" />
<MenuItem mnemonicParsing="false" text="Paste" />
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Find" />
<MenuItem mnemonicParsing="false" text="Replace" />
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Toggle line comment" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="Tips and tricks" />
<MenuItem mnemonicParsing="false" text="Keyboard Shortcut list" />
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>