diff --git a/src/main/java/NTNU/IDATT1002/controllers/LoggedInController.java b/src/main/java/NTNU/IDATT1002/controllers/LoggedInController.java index 1279defd277f777773839d2f17d264cdbaaf45fe..3d9b7dca96467f619957de708549fcc74de2fb11 100644 --- a/src/main/java/NTNU/IDATT1002/controllers/LoggedInController.java +++ b/src/main/java/NTNU/IDATT1002/controllers/LoggedInController.java @@ -15,9 +15,10 @@ public class LoggedInController { public Button tbar_map; public Button tbar_upload; public Button main_upload; + public Button tbar_searchButton; - public void switchToSearch(ActionEvent actionEvent) { - + public void switchToSearch(ActionEvent actionEvent) throws IOException { + App.setRoot("search_page"); } public void switchToExplore(ActionEvent actionEvent) throws IOException { diff --git a/src/main/java/NTNU/IDATT1002/controllers/SearchPageController.java b/src/main/java/NTNU/IDATT1002/controllers/SearchPageController.java new file mode 100644 index 0000000000000000000000000000000000000000..4faf8fe09f50973651468b117dffc546818a4cf1 --- /dev/null +++ b/src/main/java/NTNU/IDATT1002/controllers/SearchPageController.java @@ -0,0 +1,49 @@ +package NTNU.IDATT1002.controllers; + +import NTNU.IDATT1002.App; +import javafx.event.ActionEvent; +import javafx.scene.control.Button; +import javafx.scene.control.ScrollPane; +import javafx.scene.control.TextField; +import javafx.scene.image.ImageView; +import javafx.scene.input.MouseEvent; + +import java.io.IOException; + +public class SearchPageController { + public ImageView tbar_logo; + public TextField tbar_search; + public Button tbar_map; + public Button tbar_upload; + public ScrollPane scrollpane; + public Button footer_previous_page; + public Button footer_next_page; + public ImageView tbar_logo1; + public TextField tbar_search1; + public Button tbar_map1; + public Button tbar_upload1; + + public void switchToSearch(ActionEvent actionEvent) { + + } + + public void switchToMain(MouseEvent mouseEvent) { + + } + + public void switchToMap(ActionEvent actionEvent) { + + } + + public void switchToUpload(ActionEvent actionEvent) { + + } + + public void switchToPrevious(ActionEvent actionEvent) { + + } + + public void switchToNext(ActionEvent actionEvent) throws IOException { + App.setRoot("search_page_2"); + } +} diff --git a/src/main/resources/NTNU/IDATT1002/explore_page.fxml b/src/main/resources/NTNU/IDATT1002/explore_page.fxml index 30d523aa9b50bdb846ffb50d1da1b1135af36a17..73ffebaed3b9711b4c26da4331f1a8bfa2d391d3 100644 --- a/src/main/resources/NTNU/IDATT1002/explore_page.fxml +++ b/src/main/resources/NTNU/IDATT1002/explore_page.fxml @@ -30,8 +30,8 @@ </children> </HBox> <ScrollPane fx:id="scrollpane" hbarPolicy="NEVER" layoutY="100.0" prefHeight="980.0" prefWidth="1920.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="100.0"> - <content> - <AnchorPane maxHeight="1920.0" minHeight="0.0" minWidth="0.0" prefHeight="2000.0" prefWidth="1920.0"> + <content> + <AnchorPane maxHeight="1920.0" minHeight="0.0" minWidth="0.0" prefHeight="2000.0" prefWidth="1920.0"> <children> <BorderPane prefHeight="2000.0" prefWidth="1920.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <top> @@ -45,18 +45,18 @@ </right> <center> <GridPane alignment="CENTER" BorderPane.alignment="CENTER"> - <columnConstraints> + <columnConstraints> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> - <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> - <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> - </columnConstraints> - <rowConstraints> - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> + </columnConstraints> + <rowConstraints> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> - </rowConstraints> + </rowConstraints> <children> <ImageView fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" /> <ImageView fitHeight="150.0" fitWidth="200.0" layoutX="10.0" layoutY="105.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="1" /> @@ -159,7 +159,7 @@ </bottom> </BorderPane> </children></AnchorPane> - </content> + </content> </ScrollPane> </children> </AnchorPane> diff --git a/src/main/resources/NTNU/IDATT1002/logged-in.fxml b/src/main/resources/NTNU/IDATT1002/logged-in.fxml index c1b113f165c5201621e0849296444870f2dcf656..c6d85c728fa1531738310645f286383249108e85 100644 --- a/src/main/resources/NTNU/IDATT1002/logged-in.fxml +++ b/src/main/resources/NTNU/IDATT1002/logged-in.fxml @@ -23,6 +23,7 @@ </ImageView> <Pane prefHeight="100.0" prefWidth="343.0" /> <TextField fx:id="tbar_search" onAction="#switchToSearch" prefHeight="25.0" prefWidth="358.0" promptText="Search: Tags, Albums, Metadata, etc..." /> + <Button fx:id="tbar_searchButton" mnemonicParsing="false" onAction="#switchToSearch" text="SEARCH" /> <Button fx:id="tbar_explore" mnemonicParsing="false" onAction="#switchToExplore" text="EXPLORE" /> <Button fx:id="tbar_map" mnemonicParsing="false" onAction="#switchToMap" text="MAP" /> <Pane prefHeight="100.0" prefWidth="174.0" /> diff --git a/src/main/resources/NTNU/IDATT1002/search_page.fxml b/src/main/resources/NTNU/IDATT1002/search_page.fxml new file mode 100644 index 0000000000000000000000000000000000000000..0ee98bc93d1d1d0de35c6534f223aed8f6801bed --- /dev/null +++ b/src/main/resources/NTNU/IDATT1002/search_page.fxml @@ -0,0 +1,304 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<?import java.lang.String?> +<?import javafx.collections.FXCollections?> +<?import javafx.scene.control.Button?> +<?import javafx.scene.control.ChoiceBox?> +<?import javafx.scene.control.ScrollPane?> +<?import javafx.scene.control.TextField?> +<?import javafx.scene.image.Image?> +<?import javafx.scene.image.ImageView?> +<?import javafx.scene.layout.AnchorPane?> +<?import javafx.scene.layout.BorderPane?> +<?import javafx.scene.layout.ColumnConstraints?> +<?import javafx.scene.layout.GridPane?> +<?import javafx.scene.layout.HBox?> +<?import javafx.scene.layout.Pane?> +<?import javafx.scene.layout.RowConstraints?> +<?import javafx.scene.text.Font?> +<?import javafx.scene.text.Text?> + +<AnchorPane maxHeight="1080.0" maxWidth="1920.0" prefHeight="1080.0" prefWidth="1920.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" fx:controller="NTNU.IDATT1002.controllers.SearchPageController"> + <children> + <HBox alignment="CENTER" minHeight="100.0" prefHeight="100.0" prefWidth="1920.0" spacing="20.0" style="-fx-background-color: #0c0c0c;"> + <children> + <ImageView fx:id="tbar_logo1" fitHeight="69.0" fitWidth="153.0" onMouseClicked="#switchToMain" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/PlaceholderLogo.png" /> + </image> + </ImageView> + <Pane prefHeight="100.0" prefWidth="561.0" /> + <TextField fx:id="tbar_search1" onAction="#switchToSearch" prefHeight="25.0" prefWidth="358.0" promptText="Search: Tags, Albums, Metadata, etc..." /> + <Button fx:id="tbar_map1" mnemonicParsing="false" onAction="#switchToMap" text="MAP" /> + <Pane prefHeight="100.0" prefWidth="174.0" /> + <Button fx:id="tbar_upload1" mnemonicParsing="false" onAction="#switchToUpload" prefHeight="40.0" prefWidth="114.0" text="UPLOAD" /> + </children> + </HBox> + <ScrollPane fx:id="scrollpane" hbarPolicy="NEVER" layoutY="100.0" prefHeight="980.0" prefWidth="1920.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="100.0"> + <content> + <AnchorPane maxHeight="1920.0" minHeight="0.0" minWidth="0.0" prefHeight="2000.0" prefWidth="1920.0"> + <children> + <BorderPane prefHeight="2000.0" prefWidth="1920.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> + <top> + <Pane prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER"> + <children> + <Text fill="WHITE" layoutX="337.0" layoutY="113.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Found"> + <font> + <Font size="36.0" /> + </font> + </Text> + <Text fill="WHITE" layoutX="465.0" layoutY="113.0" strokeType="OUTSIDE" strokeWidth="0.0" text="X"> + <font> + <Font name="System Bold Italic" size="36.0" /> + </font> + </Text> + <Text fill="WHITE" layoutX="513.0" layoutY="113.0" strokeType="OUTSIDE" strokeWidth="0.0" text="results for your search, sorted by:"> + <font> + <Font size="36.0" /> + </font> + </Text> + <ChoiceBox layoutX="1063.0" layoutY="78.0" prefHeight="40.0" prefWidth="166.0" value="Most Popular"> + <items> + <FXCollections fx:factory="observableArrayList"> + <String fx:value="Most Popular" /> + <String fx:value="Newest First" /> + <String fx:value="Oldest First" /> + </FXCollections> + </items> + </ChoiceBox> + </children></Pane> + </top> + <left> + <Pane prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER" /> + </left> + <right> + <Pane prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER" /> + </right> + <center> + <GridPane alignment="CENTER" BorderPane.alignment="CENTER"> + <columnConstraints> + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> + </columnConstraints> + <rowConstraints> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + </rowConstraints> + <children> + <Pane prefHeight="200.0" prefWidth="200.0"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="2"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="3"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="4"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + </children> + </GridPane> + </center> + <bottom> + <Pane prefHeight="150.0" prefWidth="1920.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER"> + <children> + <HBox alignment="CENTER" layoutY="-2.0" prefHeight="84.0" prefWidth="1920.0" spacing="20.0"> + <children> + <Button fx:id="footer_previous_page" mnemonicParsing="false" onAction="#switchToPrevious" text="PREVIOUS" /> + <Button fx:id="footer_next_page" layoutX="944.0" layoutY="48.0" mnemonicParsing="false" onAction="#switchToNext" text="NEXT" /> + </children> + </HBox> + </children></Pane> + </bottom> + </BorderPane> + </children></AnchorPane> + </content> + </ScrollPane> + </children> +</AnchorPane> diff --git a/src/main/resources/NTNU/IDATT1002/search_page_2.fxml b/src/main/resources/NTNU/IDATT1002/search_page_2.fxml new file mode 100644 index 0000000000000000000000000000000000000000..e0dbb5c21bc76906897b31295d8ec735128a3460 --- /dev/null +++ b/src/main/resources/NTNU/IDATT1002/search_page_2.fxml @@ -0,0 +1,304 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<?import java.lang.String?> +<?import javafx.collections.FXCollections?> +<?import javafx.scene.control.Button?> +<?import javafx.scene.control.ChoiceBox?> +<?import javafx.scene.control.ScrollPane?> +<?import javafx.scene.control.TextField?> +<?import javafx.scene.image.Image?> +<?import javafx.scene.image.ImageView?> +<?import javafx.scene.layout.AnchorPane?> +<?import javafx.scene.layout.BorderPane?> +<?import javafx.scene.layout.ColumnConstraints?> +<?import javafx.scene.layout.GridPane?> +<?import javafx.scene.layout.HBox?> +<?import javafx.scene.layout.Pane?> +<?import javafx.scene.layout.RowConstraints?> +<?import javafx.scene.text.Font?> +<?import javafx.scene.text.Text?> + +<AnchorPane maxHeight="1080.0" maxWidth="1920.0" prefHeight="1080.0" prefWidth="1920.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" fx:controller="NTNU.IDATT1002.controllers.SearchPageController"> + <children> + <HBox alignment="CENTER" minHeight="100.0" prefHeight="100.0" prefWidth="1920.0" spacing="20.0" style="-fx-background-color: #0c0c0c;"> + <children> + <ImageView fx:id="tbar_logo1" fitHeight="69.0" fitWidth="153.0" onMouseClicked="#switchToMain" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/PlaceholderLogo.png" /> + </image> + </ImageView> + <Pane prefHeight="100.0" prefWidth="561.0" /> + <TextField fx:id="tbar_search1" onAction="#switchToSearch" prefHeight="25.0" prefWidth="358.0" promptText="Search: Tags, Albums, Metadata, etc..." /> + <Button fx:id="tbar_map1" mnemonicParsing="false" onAction="#switchToMap" text="MAP" /> + <Pane prefHeight="100.0" prefWidth="174.0" /> + <Button fx:id="tbar_upload1" mnemonicParsing="false" onAction="#switchToUpload" prefHeight="40.0" prefWidth="114.0" text="UPLOAD" /> + </children> + </HBox> + <ScrollPane fx:id="scrollpane" hbarPolicy="NEVER" layoutY="100.0" prefHeight="980.0" prefWidth="1920.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="100.0"> + <content> + <AnchorPane maxHeight="1920.0" minHeight="0.0" minWidth="0.0" prefHeight="2000.0" prefWidth="1920.0"> + <children> + <BorderPane prefHeight="2000.0" prefWidth="1920.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> + <top> + <Pane prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER"> + <children> + <Text fill="WHITE" layoutX="337.0" layoutY="113.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Found"> + <font> + <Font size="36.0" /> + </font> + </Text> + <Text fill="WHITE" layoutX="465.0" layoutY="113.0" strokeType="OUTSIDE" strokeWidth="0.0" text="X"> + <font> + <Font name="System Bold Italic" size="36.0" /> + </font> + </Text> + <Text fill="WHITE" layoutX="513.0" layoutY="113.0" strokeType="OUTSIDE" strokeWidth="0.0" text="results for your search, sorted by:"> + <font> + <Font size="36.0" /> + </font> + </Text> + <ChoiceBox layoutX="1063.0" layoutY="78.0" prefHeight="40.0" prefWidth="166.0" value="Most Popular"> + <items> + <FXCollections fx:factory="observableArrayList"> + <String fx:value="Most Popular" /> + <String fx:value="Newest First" /> + <String fx:value="Oldest First" /> + </FXCollections> + </items> + </ChoiceBox> + </children></Pane> + </top> + <left> + <Pane prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER" /> + </left> + <right> + <Pane prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER" /> + </right> + <center> + <GridPane alignment="CENTER" BorderPane.alignment="CENTER"> + <columnConstraints> + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> + </columnConstraints> + <rowConstraints> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + </rowConstraints> + <children> + <Pane prefHeight="200.0" prefWidth="200.0"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text=""test "" wrappingWidth="700.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="2"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="3"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + <Pane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="4"> + <children> + <ImageView fitHeight="307.0" fitWidth="516.0" layoutX="-2.0" layoutY="-1.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../../Images/party.jpg" /> + </image> + </ImageView> + <Text layoutX="545.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TITLE:" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="TAGS:" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="551.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DESCRIPTION:" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="70.0"> + <font> + <Font name="System Bold" size="24.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="66.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="153.0"> + <font> + <Font name="System Bold" size="48.0" /> + </font> + </Text> + <Text layoutX="707.0" layoutY="126.0" strokeType="OUTSIDE" strokeWidth="0.0" text="""" wrappingWidth="129.0"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Text> + </children> + </Pane> + </children> + </GridPane> + </center> + <bottom> + <Pane prefHeight="150.0" prefWidth="1920.0" style="-fx-background-color: #6d6d6d;" BorderPane.alignment="CENTER"> + <children> + <HBox alignment="CENTER" layoutY="-2.0" prefHeight="84.0" prefWidth="1920.0" spacing="20.0"> + <children> + <Button fx:id="footer_previous_page" mnemonicParsing="false" onAction="#switchToPrevious" text="PREVIOUS" /> + <Button fx:id="footer_next_page" layoutX="944.0" layoutY="48.0" mnemonicParsing="false" onAction="#switchToNext" text="NEXT" /> + </children> + </HBox> + </children></Pane> + </bottom> + </BorderPane> + </children></AnchorPane> + </content> + </ScrollPane> + </children> +</AnchorPane>