Schedule-Creator

Java GUI to create schedules for UNCG students
git clone git://git.wrycode.com/wrycode/archive/Schedule-Creator.git
Log | Files | Refs | README

primary.fxml (5039B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 
      3 <?import javafx.geometry.Insets?>
      4 <?import javafx.scene.control.Label?>
      5 <?import javafx.scene.control.SplitPane?>
      6 <?import javafx.scene.control.ToggleButton?>
      7 <?import javafx.scene.layout.ColumnConstraints?>
      8 <?import javafx.scene.layout.GridPane?>
      9 <?import javafx.scene.layout.HBox?>
     10 <?import javafx.scene.layout.RowConstraints?>
     11 <?import javafx.scene.layout.StackPane?>
     12 <?import javafx.scene.layout.VBox?>
     13 <?import javafx.scene.text.Font?>
     14 <?import javafx.scene.text.Text?>
     15 
     16 <StackPane xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ScheduleCreator.controllers.PrimaryController">
     17     <children>
     18         <GridPane fx:id="mainBox">
     19             <columnConstraints>
     20                 <ColumnConstraints hgrow="ALWAYS" maxWidth="63.0" minWidth="0.0" prefWidth="63.0" />
     21                 <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="-Infinity" />
     22             </columnConstraints>
     23             <rowConstraints>
     24                 <RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
     25             </rowConstraints>
     26             <children>
     27                 <GridPane alignment="CENTER" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS" HBox.hgrow="NEVER">
     28                     <columnConstraints>
     29                         <ColumnConstraints hgrow="ALWAYS" />
     30                         <ColumnConstraints />
     31                     </columnConstraints>
     32                     <rowConstraints>
     33                         <RowConstraints fillHeight="false" maxHeight="200.0" minHeight="0.0" prefHeight="60.0" vgrow="NEVER" />
     34                         <RowConstraints minHeight="10.0" prefHeight="666.0" vgrow="SOMETIMES" />
     35                     </rowConstraints>
     36                     <children>
     37                         <Text layoutX="186.0" layoutY="54.0" strokeType="OUTSIDE" strokeWidth="0.0" text="UNCG Schedule Creator" wrappingWidth="451.1748046875" GridPane.columnSpan="2" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
     38                             <font>
     39                                 <Font name="System Italic" size="37.0" />
     40                             </font>
     41                         </Text>
     42                         <VBox prefHeight="169.0" prefWidth="275.0" spacing="10.0" GridPane.rowIndex="1">
     43                             <children>
     44                                 <StackPane fx:id="mainContent" prefHeight="150.0" VBox.vgrow="ALWAYS" />
     45 
     46                             </children>
     47                         </VBox>
     48                         <ToggleButton fx:id="darkMode" mnemonicParsing="false" onAction="#toggleDarkMode" text="Dark Mode" GridPane.halignment="RIGHT" />
     49                     </children>
     50                 </GridPane>
     51                 <VBox fx:id="menuBox" alignment="CENTER" fillWidth="false" layoutX="57.0" layoutY="39.0" maxWidth="200.0" minHeight="200.0" minWidth="0.0" prefHeight="727.0" prefWidth="34.0" spacing="10.0" style="-fx-background-color:rgb(6,42,87);" visible="false" SplitPane.resizableWithParent="false">
     52                     <children>
     53                         <HBox fx:id="schedMenuItem" alignment="CENTER" onMouseClicked="#changeToSelectCourses" onMouseEntered="#hoverItem" onMouseExited="#unhoverItem" prefHeight="50.0" prefWidth="200.0" style="-fx-background-color: rgb(229,191,16); -fx-border-color: black;">
     54                             <children>
     55                                 <Label fx:id="schedMenuItemLabel" alignment="CENTER" contentDisplay="CENTER" text="Build Schedule" />
     56                             </children>
     57                         </HBox>
     58                         <HBox fx:id="regMenuItem" alignment="CENTER" onMouseClicked="#changeToRegistrationScreen" onMouseEntered="#hoverItem" onMouseExited="#unhoverItem" style="-fx-background-color: rgb(229,191,16); -fx-border-color: black;">
     59                             <children>
     60                                 <Label fx:id="regMenuItemLabel" alignment="CENTER" contentDisplay="CENTER" prefHeight="50.0" prefWidth="200.0" text="Registration" />
     61                             </children>
     62                         </HBox>
     63                         <HBox fx:id="dbItem" alignment="CENTER" onMouseClicked="#changeToDBScreen" onMouseEntered="#hoverItem" onMouseExited="#unhoverItem" style="-fx-background-color: rgb(229,191,16); -fx-border-color: black;">
     64                             <children>
     65                                 <Label fx:id="dbItemLabel" alignment="CENTER" contentDisplay="CENTER" prefHeight="50.0" prefWidth="200.0" text="Add to Database" />
     66                             </children>
     67                         </HBox>
     68                     </children>
     69                 </VBox>
     70             </children>
     71         </GridPane>
     72         <ToggleButton fx:id="toggleMenu" mnemonicParsing="false" onAction="#toggleMenu" text="Menu" StackPane.alignment="TOP_LEFT">
     73             <StackPane.margin>
     74                 <Insets left="15.0" top="15.0" />
     75             </StackPane.margin>
     76         </ToggleButton>
     77     </children>
     78 </StackPane>