error.fxml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  3. <?import org.cryptomator.ui.controls.FontAwesome5Spinner?>
  4. <?import org.cryptomator.ui.controls.FormattedLabel?>
  5. <?import javafx.geometry.Insets?>
  6. <?import javafx.scene.control.Button?>
  7. <?import javafx.scene.control.ButtonBar?>
  8. <?import javafx.scene.control.Hyperlink?>
  9. <?import javafx.scene.control.Label?>
  10. <?import javafx.scene.control.TextArea?>
  11. <?import javafx.scene.layout.HBox?>
  12. <?import javafx.scene.layout.Region?>
  13. <?import javafx.scene.layout.StackPane?>
  14. <?import javafx.scene.layout.VBox?>
  15. <?import javafx.scene.shape.Circle?>
  16. <VBox xmlns:fx="http://javafx.com/fxml"
  17. xmlns="http://javafx.com/javafx"
  18. fx:controller="org.cryptomator.ui.error.ErrorController"
  19. prefWidth="450"
  20. prefHeight="450"
  21. spacing="18"
  22. alignment="TOP_CENTER">
  23. <padding>
  24. <Insets topRightBottomLeft="24"/>
  25. </padding>
  26. <children>
  27. <HBox spacing="12" VBox.vgrow="NEVER">
  28. <StackPane alignment="CENTER" HBox.hgrow="NEVER">
  29. <Circle styleClass="glyph-icon-primary" radius="24"/>
  30. <FontAwesome5IconView styleClass="glyph-icon-white" glyph="EXCLAMATION" glyphSize="24"/>
  31. </StackPane>
  32. <VBox spacing="6" HBox.hgrow="ALWAYS">
  33. <FormattedLabel styleClass="label-extra-large" format="%error.message" arg1="${controller.errorCode}"/>
  34. <FontAwesome5Spinner glyphSize="24" visible="${controller.isLoadingHttpResponse}" managed="${controller.isLoadingHttpResponse}"/>
  35. <VBox visible="${!controller.isLoadingHttpResponse}" managed="${!controller.isLoadingHttpResponse}">
  36. <Label text="%error.existingSolutionDescription" wrapText="true" visible="${controller.errorSolutionFound}" managed="${controller.errorSolutionFound}"/>
  37. <Hyperlink styleClass="hyperlink-underline" text="%error.hyperlink.solution" onAction="#showSolution" contentDisplay="LEFT" visible="${controller.errorSolutionFound}" managed="${controller.errorSolutionFound}">
  38. <graphic>
  39. <FontAwesome5IconView glyph="LINK" glyphSize="12"/>
  40. </graphic>
  41. </Hyperlink>
  42. <Label text="%error.description" wrapText="true" visible="${!controller.errorSolutionFound}" managed="${!controller.errorSolutionFound}"/>
  43. <Hyperlink styleClass="hyperlink-underline" text="%error.hyperlink.lookup" onAction="#searchError" contentDisplay="LEFT" visible="${!controller.errorSolutionFound}" managed="${!controller.errorSolutionFound}">
  44. <graphic>
  45. <FontAwesome5IconView glyph="LINK" glyphSize="12"/>
  46. </graphic>
  47. </Hyperlink>
  48. <Hyperlink styleClass="hyperlink-underline" text="%error.hyperlink.report" onAction="#reportError" contentDisplay="LEFT" visible="${!controller.errorSolutionFound}" managed="${!controller.errorSolutionFound}">
  49. <graphic>
  50. <FontAwesome5IconView glyph="LINK" glyphSize="12"/>
  51. </graphic>
  52. </Hyperlink>
  53. </VBox>
  54. </VBox>
  55. </HBox>
  56. <VBox spacing="6" VBox.vgrow="ALWAYS">
  57. <HBox>
  58. <Label text="%error.technicalDetails"/>
  59. <Region HBox.hgrow="ALWAYS"/>
  60. <Hyperlink styleClass="hyperlink-underline" text="%generic.button.copy" onAction="#copyDetails" contentDisplay="LEFT" visible="${!controller.copiedDetails}" managed="${!controller.copiedDetails}">
  61. <graphic>
  62. <FontAwesome5IconView glyph="CLIPBOARD" glyphSize="12"/>
  63. </graphic>
  64. </Hyperlink>
  65. <Hyperlink styleClass="hyperlink-underline" text="%generic.button.copied" onAction="#copyDetails" contentDisplay="LEFT" visible="${controller.copiedDetails}" managed="${controller.copiedDetails}">
  66. <graphic>
  67. <FontAwesome5IconView glyph="CHECK" glyphSize="12"/>
  68. </graphic>
  69. </Hyperlink>
  70. </HBox>
  71. <TextArea VBox.vgrow="ALWAYS" text="${controller.detailText}" prefRowCount="5" editable="false"/>
  72. </VBox>
  73. <ButtonBar buttonMinWidth="120" buttonOrder="B+C">
  74. <buttons>
  75. <Button text="%generic.button.back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#back" visible="${controller.previousScenePresent}"/>
  76. <Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" onAction="#close"/>
  77. </buttons>
  78. </ButtonBar>
  79. </children>
  80. </VBox>