health_check_details.fxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.scene.control.Label?>
  3. <?import javafx.scene.control.ListView?>
  4. <?import javafx.scene.layout.VBox?>
  5. <?import org.cryptomator.ui.health.CheckStateIconView?>
  6. <?import javafx.scene.layout.HBox?>
  7. <?import javafx.scene.control.Button?>
  8. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  9. <?import javafx.scene.layout.Region?>
  10. <?import javafx.scene.control.ChoiceBox?>
  11. <?import javafx.scene.control.ContextMenu?>
  12. <?import javafx.scene.control.MenuItem?>
  13. <VBox xmlns:fx="http://javafx.com/fxml"
  14. xmlns="http://javafx.com/javafx"
  15. fx:controller="org.cryptomator.ui.health.CheckDetailController"
  16. spacing="12">
  17. <HBox alignment="CENTER" >
  18. <VBox spacing="12">
  19. <Label fx:id="detailHeader" styleClass="label-extra-large" text="${controller.checkName}" contentDisplay="RIGHT">
  20. <graphic>
  21. <HBox alignment="CENTER" minWidth="25" maxWidth="25">
  22. <CheckStateIconView check="${controller.check}" glyphSize="20"/>
  23. </HBox>
  24. </graphic>
  25. </Label>
  26. <Label text="%health.check.detail.checkRunning" visible="${controller.checkRunning}" managed="${controller.checkRunning}"/>
  27. <Label text="%health.check.detail.checkScheduled" visible="${controller.checkScheduled}" managed="${controller.checkScheduled}"/>
  28. <Label text="%health.check.detail.checkSkipped" visible="${controller.checkSkipped}" managed="${controller.checkSkipped}"/>
  29. <Label text="%health.check.detail.checkCancelled" visible="${controller.checkCancelled}" managed="${controller.checkCancelled}"/>
  30. <Label text="%health.check.detail.checkFailed" visible="${controller.checkFailed}" managed="${controller.checkFailed}"/>
  31. <Label text="%health.check.detail.checkFinished" visible="${controller.checkSucceeded &amp;&amp; !controller.warnOrCritsExist}" managed="${controller.checkSucceeded &amp;&amp; !controller.warnOrCritsExist}"/>
  32. <Label text="%health.check.detail.checkFinishedAndFound" visible="${controller.checkSucceeded &amp;&amp; controller.warnOrCritsExist}" managed="${controller.checkSucceeded &amp;&amp; controller.warnOrCritsExist}"/>
  33. </VBox>
  34. <Region HBox.hgrow="ALWAYS"/>
  35. <Button text="%health.check.detail.fixAllSpecificBtn" contentDisplay="RIGHT" graphicTextGap="3" visible="${controller.checkFinished}" managed="${controller.checkFinished}" disable="${! controller.fixAllInfoResultsPossible}" onAction="#fixAllInfoResults">
  36. <graphic>
  37. <FontAwesome5IconView glyph="INFO_CIRCLE" glyphSize="12" styleClass="glyph-icon-muted"/>
  38. </graphic>
  39. </Button>
  40. </HBox>
  41. <VBox spacing="3">
  42. <HBox alignment="CENTER_LEFT" spacing="6">
  43. <Label fx:id="filterLbl" text="Filters">
  44. <graphic>
  45. <FontAwesome5IconView glyph="FUNNEL" glyphSize="${filterLbl.height}" styleClass="glyph-icon-muted"/>
  46. </graphic>
  47. </Label>
  48. <Region HBox.hgrow="ALWAYS" />
  49. <Label text="Severity" labelFor="${severityChoiceBox}"/>
  50. <ChoiceBox fx:id="severityChoiceBox" />
  51. <Label text="Fix state" labelFor="${fixStateChoiceBox}"/>
  52. <ChoiceBox fx:id="fixStateChoiceBox" />
  53. </HBox>
  54. <ListView fx:id="resultsListView" VBox.vgrow="ALWAYS" visible="${!controller.checkSkipped}" fixedCellSize="25">
  55. <contextMenu>
  56. <ContextMenu>
  57. <items>
  58. <MenuItem text="%generic.button.copy" onAction="#copyResultDetails"/>
  59. </items>
  60. </ContextMenu>
  61. </contextMenu>
  62. </ListView>
  63. </VBox>
  64. </VBox>