Skip to content

Commit 9d567f6

Browse files
ddamkeddamke
authored andcommitted
add tap for export and import
1 parent b40e754 commit 9d567f6

File tree

1 file changed

+61
-8
lines changed

1 file changed

+61
-8
lines changed

src/main/resources/layouts/settings.fxml

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
<?import javafx.scene.layout.AnchorPane?>
3131
<?import javafx.scene.layout.HBox?>
3232
<?import javafx.scene.layout.Pane?>
33-
<?import javafx.scene.layout.Region?>
3433
<?import javafx.scene.layout.VBox?>
3534
<?import javafx.scene.shape.Line?>
3635
<?import javafx.scene.shape.SVGPath?>
3736
<?import javafx.scene.text.Font?>
37+
<?import javafx.scene.text.Text?>
3838

3939
<AnchorPane fx:id="settingsRoot" focusTraversable="true" prefHeight="551.0" prefWidth="606.0" style="-fx-background-color: white;" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.doubleslash.keeptime.view.SettingsController">
4040
<children>
@@ -442,14 +442,73 @@
442442
<Label text="About" />
443443
</graphic>
444444
</Tab>
445+
<Tab>
446+
<content>
447+
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
448+
<children>
449+
<VBox layoutX="20.0" layoutY="20.0">
450+
<children>
451+
<Group>
452+
<children>
453+
<VBox alignment="BOTTOM_RIGHT" prefHeight="132.0" prefWidth="476.0" styleClass="settingsBorder" stylesheets="@../css/settingsv2.css">
454+
<children>
455+
<HBox prefHeight="100.0" prefWidth="200.0">
456+
<children>
457+
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Import your prevously exportet Sql script " wrappingWidth="474.13671875" />
458+
</children>
459+
</HBox>
460+
<HBox alignment="BOTTOM_RIGHT" prefHeight="40.0" prefWidth="474.0">
461+
<children>
462+
<Button fx:id="importButton" alignment="TOP_LEFT" mnemonicParsing="false" text="Import">
463+
<font>
464+
<Font name="Open Sans Regular" size="12.0" />
465+
</font>
466+
</Button>
467+
</children>
468+
</HBox>
469+
</children>
470+
</VBox>
471+
</children>
472+
</Group>
473+
<Group layoutX="10.0" layoutY="10.0" styleClass="settingsBorder" stylesheets="@../css/settingsv2.css">
474+
<children>
475+
<VBox alignment="BOTTOM_RIGHT" prefHeight="144.0" prefWidth="477.0" styleClass="settingsBorder" stylesheets="@../css/settingsv2.css">
476+
<children>
477+
<HBox prefHeight="100.0" prefWidth="200.0">
478+
<children>
479+
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Export your data to a Sql scrippt" />
480+
</children>
481+
</HBox>
482+
<HBox alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="475.0">
483+
<children>
484+
<Button fx:id="exportButton" mnemonicParsing="false" text="Export">
485+
<font>
486+
<Font name="Open Sans Regular" size="12.0" />
487+
</font>
488+
</Button>
489+
</children>
490+
</HBox>
491+
</children>
492+
</VBox>
493+
</children>
494+
</Group>
495+
</children>
496+
</VBox>
497+
</children>
498+
</AnchorPane>
499+
</content>
500+
<graphic>
501+
<Label text="Import/Export" />
502+
</graphic>
503+
</Tab>
445504
</tabs>
446505
<styleClass>
447506
<String fx:value="tab-header-area" />
448507
<String fx:value="tab-header-background" />
449508
<String fx:value="tab-pane" />
450509
</styleClass>
451510
</TabPane>
452-
<HBox layoutX="4.0" layoutY="524.0" prefHeight="26.0" prefWidth="598.0" spacing="10.0" styleClass="saveCancelHboxBorder" stylesheets="@../css/settingsv2.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
511+
<HBox alignment="BOTTOM_RIGHT" layoutX="4.0" layoutY="524.0" prefHeight="26.0" prefWidth="598.0" spacing="10.0" styleClass="saveCancelHboxBorder" stylesheets="@../css/settingsv2.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
453512
<children>
454513
<Button fx:id="saveButton" mnemonicParsing="false" text="Save">
455514
<font>
@@ -461,12 +520,6 @@
461520
<Font name="Open Sans Regular" size="12.0" />
462521
</font>
463522
</Button>
464-
<Region HBox.hgrow="ALWAYS" />
465-
<Button fx:id="exportButton" mnemonicParsing="false" text="Export">
466-
<font>
467-
<Font name="Open Sans Regular" size="12.0" />
468-
</font>
469-
</Button>
470523
</children>
471524
</HBox>
472525
</children>

0 commit comments

Comments
 (0)