~exprez135/cryptomator-libre

ref: aef33dc8646f2f17e0d7dd30deeb3e135e26e382 cryptomator-libre/main/ui/src/main/resources/fxml/vault_options_mount.fxml -rw-r--r-- 2.5 KiB
aef33dc8 — Sebastian Stenzel Merge branch 'release/1.5.4' 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import org.cryptomator.ui.controls.AlphanumericTextField?>
<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
<VBox xmlns="http://javafx.com/javafx"
	  xmlns:fx="http://javafx.com/fxml"
	  fx:controller="org.cryptomator.ui.vaultoptions.MountOptionsController"
	  spacing="6">
	<fx:define>
		<ToggleGroup fx:id="mountPoint"/>
	</fx:define>
	<padding>
		<Insets topRightBottomLeft="12"/>
	</padding>
	<children>
		<HBox spacing="6" alignment="CENTER_LEFT">
			<Label text="%vaultOptions.mount.driveName"/>
			<AlphanumericTextField fx:id="driveName"/>
		</HBox>

		<CheckBox fx:id="readOnlyCheckbox" text="%vaultOptions.mount.readonly"/>

		<CheckBox fx:id="customMountFlagsCheckbox" text="%vaultOptions.mount.customMountFlags" onAction="#toggleUseCustomMountFlags"/>

		<TextField fx:id="mountFlags" HBox.hgrow="ALWAYS" maxWidth="Infinity">
			<VBox.margin>
				<Insets left="24"/>
			</VBox.margin>
		</TextField>

		<Label text="%vaultOptions.mount.mountPoint">
			<VBox.margin>
				<Insets top="9"/>
			</VBox.margin>
		</Label>
		<RadioButton toggleGroup="${mountPoint}" fx:id="mountPointAuto" text="%vaultOptions.mount.mountPoint.auto"/>
		<HBox spacing="6" visible="${controller.osIsWindows}" managed="${controller.osIsWindows}">
			<RadioButton toggleGroup="${mountPoint}" fx:id="mountPointWinDriveLetter" text="%vaultOptions.mount.mountPoint.driveLetter"/>
			<ChoiceBox fx:id="driveLetterSelection" disable="${!mountPointWinDriveLetter.selected}"/>
		</HBox>
		<HBox spacing="6" alignment="CENTER_LEFT">
			<RadioButton toggleGroup="${mountPoint}" fx:id="mountPointCustomDir" text="%vaultOptions.mount.mountPoint.custom"/>
			<Button text="%vaultOptions.mount.mountPoint.directoryPickerButton" onAction="#chooseCustomMountPoint" contentDisplay="LEFT" disable="${!mountPointCustomDir.selected}">
				<graphic>
					<FontAwesome5IconView glyph="FOLDER_OPEN" glyphSize="15"/>
				</graphic>
			</Button>
		</HBox>
		<TextField text="${controller.customMountPath}" visible="${mountPointCustomDir.selected}" maxWidth="Infinity" disable="true">
			<VBox.margin>
				<Insets left="24"/>
			</VBox.margin>
		</TextField>
	</children>

</VBox>