|
8 | 8 | <?import javafx.scene.control.ScrollPane?> |
9 | 9 | <?import javafx.scene.control.TextArea?> |
10 | 10 | <?import javafx.scene.control.Tooltip?> |
| 11 | +<?import javafx.scene.Cursor?> |
11 | 12 | <?import javafx.scene.layout.BorderPane?> |
12 | 13 | <?import javafx.scene.layout.ColumnConstraints?> |
13 | 14 | <?import javafx.scene.layout.GridPane?> |
|
16 | 17 | <?import javafx.scene.layout.RowConstraints?> |
17 | 18 | <?import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIconView?> |
18 | 19 | <?import org.controlsfx.control.MasterDetailPane?> |
19 | | -<ScrollPane xmlns:fx="http://javafx.com/fxml/1" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" |
20 | | - styleClass="fileAnnotationTab" xmlns="http://javafx.com/javafx/8.0.112" |
21 | | - fx:controller="org.jabref.gui.entryeditor.fileannotationtab.FileAnnotationTabController"> |
| 20 | + |
| 21 | +<ScrollPane fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" styleClass="fileAnnotationTab" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.jabref.gui.entryeditor.fileannotationtab.FileAnnotationTabController"> |
22 | 22 | <MasterDetailPane dividerPosition="0.6"> |
23 | 23 | <masterNode> |
24 | 24 | <BorderPane> |
25 | 25 | <padding> |
26 | | - <Insets top="5" right="5" bottom="5" left="5"/> |
| 26 | + <Insets bottom="5" left="5" right="5" top="5" /> |
27 | 27 | </padding> |
28 | 28 | <top> |
29 | 29 | <HBox alignment="BASELINE_LEFT"> |
30 | | - <Label text="%Filename" prefWidth="70.0" alignment="BASELINE_LEFT"/> |
31 | | - <ComboBox fx:id="files" maxWidth="Infinity" HBox.hgrow="ALWAYS"/> |
| 30 | + <Label alignment="BASELINE_LEFT" prefWidth="70.0" text="%Filename" /> |
| 31 | + <ComboBox fx:id="files" maxWidth="Infinity" HBox.hgrow="ALWAYS" /> |
32 | 32 | </HBox> |
33 | 33 | </top> |
34 | 34 | <center> |
35 | | - <ListView fx:id="annotationList"/> |
| 35 | + <ListView fx:id="annotationList" /> |
36 | 36 | </center> |
37 | 37 | </BorderPane> |
38 | 38 | </masterNode> |
39 | 39 | <detailNode> |
40 | | - <GridPane> |
| 40 | + <GridPane fx:id="grid"> |
41 | 41 | <padding> |
42 | | - <Insets top="5" right="5" bottom="5" left="10"/> |
| 42 | + <Insets bottom="5" left="10" right="5" top="5" /> |
43 | 43 | </padding> |
44 | 44 | <columnConstraints> |
45 | | - <ColumnConstraints hgrow="SOMETIMES" minWidth="60.0" prefWidth="70.0"/> |
46 | | - <ColumnConstraints hgrow="ALWAYS" minWidth="10.0"/> |
47 | | - <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="20.0"/> |
| 45 | + <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="10.0" prefWidth="10.0" /> |
| 46 | + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" /> |
| 47 | + <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="40.0" prefWidth="40.0" /> |
48 | 48 | </columnConstraints> |
49 | 49 | <rowConstraints> |
50 | | - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" valignment="TOP"/> |
51 | | - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> |
52 | | - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> |
53 | | - <RowConstraints minHeight="10.0" prefHeight="100.0" vgrow="ALWAYS"/> |
54 | | - <RowConstraints minHeight="10.0" prefHeight="100.0" vgrow="ALWAYS"/> |
| 50 | + <RowConstraints maxHeight="-Infinity" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 51 | + <RowConstraints minHeight="10.0" prefHeight="100.0" vgrow="ALWAYS" /> |
| 52 | + <RowConstraints maxHeight="-Infinity" minHeight="20.0" prefHeight="40.0" vgrow="ALWAYS" /> |
| 53 | + <RowConstraints /> |
| 54 | + <RowConstraints maxHeight="-Infinity" minHeight="10.0" prefHeight="10.0" /> |
55 | 55 | </rowConstraints> |
56 | | - <Label text="%Author" minHeight="35.0" prefHeight="30.0" GridPane.columnIndex="0" GridPane.rowIndex="1" |
57 | | - alignment="TOP_LEFT"/> |
58 | | - <HBox GridPane.columnIndex="1" GridPane.rowIndex="1"> |
59 | | - <Label fx:id="author"/> |
60 | | - <Pane HBox.hgrow="ALWAYS"/> |
| 56 | + <Label text="%Marking" GridPane.columnIndex="1" GridPane.valignment="BOTTOM"> |
| 57 | + <padding> |
| 58 | + <Insets bottom="3.0" /> |
| 59 | + </padding></Label> |
| 60 | + <TextArea fx:id="marking" editable="false" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1" /> |
| 61 | + <Label text="%Content" GridPane.columnIndex="1" GridPane.rowIndex="2" GridPane.valignment="BOTTOM"> |
| 62 | + <padding> |
| 63 | + <Insets bottom="5.0" /> |
| 64 | + </padding></Label> |
| 65 | + <TextArea fx:id="content" editable="false" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="3" /> |
| 66 | + <HBox GridPane.columnIndex="2" GridPane.rowIndex="1"> |
| 67 | + <Label fx:id="author" /> |
| 68 | + <Pane HBox.hgrow="ALWAYS" /> |
61 | 69 | <Button onAction="#copy" styleClass="flatButton"> |
62 | 70 | <graphic> |
63 | | - <MaterialDesignIconView glyphName="CONTENT_COPY"/> |
| 71 | + <MaterialDesignIconView glyphName="CONTENT_COPY"> |
| 72 | + <cursor> |
| 73 | + <Cursor fx:constant="HAND" /> |
| 74 | + </cursor></MaterialDesignIconView> |
64 | 75 | </graphic> |
65 | 76 | <tooltip> |
66 | | - <Tooltip text="%Copy to clipboard"/> |
| 77 | + <Tooltip text="%Copy to clipboard" /> |
67 | 78 | </tooltip> |
68 | 79 | </Button> |
69 | 80 | </HBox> |
70 | | - <Label text="%Page" GridPane.columnIndex="0" GridPane.rowIndex="2"/> |
71 | | - <Label fx:id="page" GridPane.columnIndex="1" GridPane.rowIndex="2"/> |
72 | | - <Label text="%Date" GridPane.columnIndex="0" GridPane.rowIndex="3"/> |
73 | | - <Label fx:id="date" GridPane.columnIndex="1" GridPane.rowIndex="3"/> |
74 | | - <Label text="%Content" GridPane.columnIndex="0" GridPane.rowIndex="4"/> |
75 | | - <TextArea fx:id="content" GridPane.columnIndex="1" GridPane.rowIndex="4" editable="false" |
76 | | - wrapText="true"/> |
77 | | - <Label text="%Marking" GridPane.columnIndex="0" GridPane.rowIndex="5"/> |
78 | | - <TextArea fx:id="marking" GridPane.columnIndex="1" GridPane.rowIndex="5" editable="false" |
79 | | - wrapText="true"/> |
80 | 81 | </GridPane> |
81 | 82 | </detailNode> |
82 | 83 | </MasterDetailPane> |
|
0 commit comments