|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | | -<?import javafx.geometry.Insets?> |
4 | 3 | <?import javafx.scene.control.Button?> |
5 | 4 | <?import javafx.scene.control.CheckBox?> |
6 | 5 | <?import javafx.scene.control.ComboBox?> |
|
11 | 10 | <?import javafx.scene.layout.HBox?> |
12 | 11 | <?import javafx.scene.layout.VBox?> |
13 | 12 |
|
14 | | - |
15 | 13 | <fx:root prefWidth="650.0" spacing="10.0" type="VBox" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.jabref.gui.preferences.FileTabView"> |
16 | 14 | <children> |
17 | 15 | <Label styleClass="sectionHeader" text="%General" /> |
18 | | - <CheckBox text="%Open last edited libraries at startup" /> |
19 | | - <CheckBox text="%Backup old file when saving" /> |
| 16 | + <CheckBox fx:id="openLastStartup" text="%Open last edited libraries at startup" /> |
| 17 | + <CheckBox fx:id="backupOldFile" text="%Backup old file when saving" /> |
20 | 18 | <HBox spacing="8.0"> |
21 | 19 | <children> |
22 | 20 | <Label text="%Do not wrap the following fields when saving" /> |
23 | | - <TextField HBox.hgrow="ALWAYS" /> |
| 21 | + <TextField fx:id="noWrapFiles" HBox.hgrow="ALWAYS" /> |
24 | 22 | </children> |
25 | 23 | </HBox> |
26 | | - <RadioButton text="%Resolve strings for standard BibTeX fields only"> |
| 24 | + <RadioButton fx:id="resolveStringsBibTex" text="%Resolve strings for standard BibTeX fields only"> |
27 | 25 | <toggleGroup> |
28 | 26 | <ToggleGroup fx:id="stringsResolveToggleGroup" /> |
29 | 27 | </toggleGroup> |
30 | 28 | </RadioButton> |
31 | | - <RadioButton alignment="TOP_LEFT" maxWidth="1.7976931348623157E308" toggleGroup="$stringsResolveToggleGroup"> |
32 | | - <graphic> |
33 | | - <HBox> |
34 | | - <children> |
35 | | - <VBox maxWidth="1.7976931348623157E308" prefHeight="43.0" prefWidth="1581.0" spacing="10.0" HBox.hgrow="ALWAYS"> |
36 | | - <children> |
37 | | - <Label text="\\%Resolve strings for all fields exception"> |
38 | | - <opaqueInsets> |
39 | | - <Insets /> |
40 | | - </opaqueInsets> |
41 | | - </Label> |
42 | | - <TextField /> |
43 | | - </children> |
44 | | - </VBox> |
45 | | - </children> |
46 | | - <opaqueInsets> |
47 | | - <Insets left="4.0" /> |
48 | | - </opaqueInsets> |
49 | | - </HBox> |
50 | | - </graphic> |
51 | | - </RadioButton> |
| 29 | + <HBox alignment="CENTER_LEFT" spacing="10.0"> |
| 30 | + <children> |
| 31 | + <RadioButton fx:id="resolveStringsAll" alignment="TOP_LEFT" maxWidth="Infinity" text="Resolve strings for all fields except" toggleGroup="$stringsResolveToggleGroup" /> |
| 32 | + <TextField fx:id="resolvStringsExcept" HBox.hgrow="ALWAYS" /> |
| 33 | + </children> |
| 34 | + </HBox> |
52 | 35 | <HBox alignment="CENTER_LEFT" spacing="10.0"> |
53 | 36 | <children> |
54 | 37 | <Label alignment="TOP_LEFT" text="%Newline separator" /> |
55 | | - <ComboBox prefWidth="200.0" /> |
| 38 | + <ComboBox fx:id="newLineSeparator" prefWidth="100.0" /> |
56 | 39 | </children> |
57 | 40 | </HBox> |
58 | | - <CheckBox text="%Always reformat BIB file on save and export" /> |
| 41 | + <CheckBox fx:id="alwaysReformatBib" text="%Always reformat BIB file on save and export" /> |
59 | 42 |
|
60 | 43 | <Label styleClass="sectionHeader" text="%External file links" /> |
61 | 44 | <HBox alignment="CENTER_LEFT" spacing="10.0"> |
62 | 45 | <children> |
63 | 46 | <Label text="%Main file directory" /> |
64 | | - <TextField HBox.hgrow="ALWAYS" /> |
65 | | - <Button maxWidth="1.7976931348623157E308" text="%Browse" /> |
66 | | - </children> |
67 | | - </HBox> |
68 | | - <HBox alignment="CENTER_LEFT"> |
69 | | - <children> |
70 | | - <CheckBox text="%Use the BIB file location as primary file directory" /> |
71 | | - <HBox HBox.hgrow="ALWAYS" /> |
72 | | - <Button /> |
| 47 | + <TextField fx:id="mainFileDir" HBox.hgrow="ALWAYS" /> |
| 48 | + <Button onAction="#mainFileDirBrowse" text="%Browse" /> |
73 | 49 | </children> |
74 | 50 | </HBox> |
75 | | - <RadioButton text="%Autolink files with names starting with the BibTeX key"> |
| 51 | + <CheckBox fx:id="useBibLocationAsPrimary" text="%Use the BIB file location as primary file directory" /> |
| 52 | + <RadioButton fx:id="autolinkFilesWithBibtex" text="%Autolink files with names starting with the BibTeX key"> |
76 | 53 | <toggleGroup> |
77 | 54 | <ToggleGroup fx:id="autolinkToggleGroup" /> |
78 | 55 | </toggleGroup> |
79 | 56 | </RadioButton> |
80 | | - <RadioButton text="%Autolink only files that match the BibTeX key" toggleGroup="$autolinkToggleGroup" /> |
| 57 | + <RadioButton fx:id="autolinkFilesOnlyBibtex" text="%Autolink only files that match the BibTeX key" toggleGroup="$autolinkToggleGroup" /> |
81 | 58 | <HBox alignment="CENTER_LEFT" spacing="10.0"> |
82 | 59 | <children> |
83 | | - <RadioButton text="%Use regular expression search" toggleGroup="$autolinkToggleGroup" /> |
84 | | - <TextField HBox.hgrow="ALWAYS" /> |
| 60 | + <RadioButton fx:id="autolinkUseRegex" text="%Use regular expression search" toggleGroup="$autolinkToggleGroup" /> |
| 61 | + <TextField fx:id="autolinkRegexTerm" HBox.hgrow="ALWAYS" /> |
| 62 | + <Button fx:id="autolinkRegexHelp" /> |
85 | 63 | </children> |
86 | 64 | </HBox> |
87 | | - <CheckBox text="%When opening file link, search for matching file if no link is defined" /> |
88 | | - <CheckBox text="%Automatically open browse dialog when creating new file link" /> |
| 65 | + <CheckBox fx:id="searchFilesOnOpen" text="%When opening file link, search for matching file if no link is defined" /> |
| 66 | + <CheckBox fx:id="openBrowseOnCreate" text="%Automatically open browse dialog when creating new file link" /> |
89 | 67 | <Label styleClass="sectionHeader" text="%Autosave" /> |
90 | 68 | <HBox> |
91 | 69 | <children> |
92 | | - <CheckBox text="%Autosave local libraries" /> |
| 70 | + <CheckBox fx:id="autosaveLocalLibraries" text="%Autosave local libraries" /> |
93 | 71 | <HBox HBox.hgrow="ALWAYS" /> |
94 | | - <Button /> |
| 72 | + <Button fx:id="autosaveLocalLibrariesHelp" /> |
95 | 73 | </children> |
96 | 74 | </HBox> |
97 | 75 | </children> |
|
0 commit comments