release 0.8.0 #12
| @ -0,0 +1,83 @@ | ||||
| package kellerkinder.HomeFlix.application; | ||||
|  | ||||
| import com.jfoenix.controls.JFXButton; | ||||
| import com.jfoenix.controls.JFXColorPicker; | ||||
| import com.jfoenix.controls.JFXSlider; | ||||
| import com.jfoenix.controls.JFXToggleButton; | ||||
|  | ||||
| import javafx.event.ActionEvent; | ||||
| import javafx.fxml.FXML; | ||||
| import javafx.scene.control.ChoiceBox; | ||||
| import javafx.scene.control.Label; | ||||
| import javafx.scene.control.ScrollPane; | ||||
| import javafx.scene.control.TableColumn; | ||||
| import javafx.scene.control.TableView; | ||||
| import javafx.scene.layout.AnchorPane; | ||||
| import kellerkinder.HomeFlix.datatypes.SourceDataType; | ||||
|  | ||||
| public class SettingsView { | ||||
|  | ||||
|     @FXML private ScrollPane settingsScrollPane; | ||||
|     @FXML private AnchorPane settingsAnchorPane; | ||||
|  | ||||
|     @FXML private Label homeflixSettingsLbl; | ||||
|     @FXML private Label mainColorLbl; | ||||
|     @FXML private Label fontsizeLbl; | ||||
|     @FXML private Label languageLbl; | ||||
|     @FXML private Label updateLbl; | ||||
|     @FXML private Label branchLbl; | ||||
|     @FXML private Label versionLbl; | ||||
|     @FXML private Label PlayerLbl; | ||||
|     @FXML private Label sourcesLbl; | ||||
|      | ||||
|     @FXML private JFXColorPicker colorPicker; | ||||
|     @FXML private JFXSlider fontsizeSlider; | ||||
|  | ||||
|     @FXML private ChoiceBox<String> languageChoisBox; | ||||
|     @FXML private ChoiceBox<String> branchChoisBox; | ||||
|  | ||||
|     @FXML private JFXButton updateBtn; | ||||
|     @FXML private JFXButton addStreamSourceBtn; | ||||
|     @FXML private JFXButton addDirectoryBtn; | ||||
|  | ||||
|     @FXML private JFXToggleButton autoUpdateToggleBtn; | ||||
|     @FXML private JFXToggleButton autoplayToggleBtn; | ||||
|  | ||||
|     @FXML private TableView<SourceDataType> sourcesTable; | ||||
|     @FXML private TableColumn<SourceDataType, String> sourceColumn; | ||||
|     @FXML private TableColumn<SourceDataType, String> modeColumn; | ||||
|      | ||||
|     public void initialize() { | ||||
|     	System.out.println("geht"); | ||||
|     } | ||||
|      | ||||
|     @FXML void addDirectoryBtnAction(ActionEvent event) { | ||||
|  | ||||
|     } | ||||
|  | ||||
|     @FXML | ||||
|     void addStreamSourceBtnAction(ActionEvent event) { | ||||
|  | ||||
|     } | ||||
|  | ||||
|     @FXML | ||||
|     void autoUpdateToggleBtnAction(ActionEvent event) { | ||||
|  | ||||
|     } | ||||
|  | ||||
|     @FXML | ||||
|     void autoplayToggleBtnAction(ActionEvent event) { | ||||
|  | ||||
|     } | ||||
|  | ||||
|     @FXML | ||||
|     void colorPickerAction(ActionEvent event) { | ||||
|  | ||||
|     } | ||||
|  | ||||
|     @FXML | ||||
|     void updateBtnAction(ActionEvent event) { | ||||
|  | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										154
									
								
								src/main/resources/fxml/SettingsView.fxml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										154
									
								
								src/main/resources/fxml/SettingsView.fxml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,154 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
|  | ||||
| <?import com.jfoenix.controls.JFXButton?> | ||||
| <?import com.jfoenix.controls.JFXColorPicker?> | ||||
| <?import com.jfoenix.controls.JFXSlider?> | ||||
| <?import com.jfoenix.controls.JFXToggleButton?> | ||||
| <?import javafx.geometry.Insets?> | ||||
| <?import javafx.scene.control.ChoiceBox?> | ||||
| <?import javafx.scene.control.Label?> | ||||
| <?import javafx.scene.control.ScrollPane?> | ||||
| <?import javafx.scene.control.Separator?> | ||||
| <?import javafx.scene.control.TableColumn?> | ||||
| <?import javafx.scene.control.TableView?> | ||||
| <?import javafx.scene.layout.AnchorPane?> | ||||
| <?import javafx.scene.layout.HBox?> | ||||
| <?import javafx.scene.layout.VBox?> | ||||
| <?import javafx.scene.text.Font?> | ||||
|  | ||||
| <ScrollPane fx:id="settingsScrollPane" fitToHeight="true" fitToWidth="true" prefHeight="568.0" prefWidth="980.0" visible="false" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="kellerkinder.HomeFlix.application.SettingsView"> | ||||
|    <content> | ||||
|       <AnchorPane fx:id="settingsAnchorPane" style="-fx-background-color: white;"> | ||||
|          <children> | ||||
|             <VBox AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> | ||||
|                <children> | ||||
|                   <Label fx:id="homeflixSettingsLbl" text="HomeFlix Settings"> | ||||
|                      <font> | ||||
|                         <Font name="System Bold" size="14.0" /> | ||||
|                      </font> | ||||
|                   </Label> | ||||
|                   <Separator prefWidth="200.0"> | ||||
|                      <padding> | ||||
|                         <Insets right="5.0" /> | ||||
|                      </padding> | ||||
|                   </Separator> | ||||
|                </children> | ||||
|                <padding> | ||||
|                   <Insets left="5.0" right="5.0" /> | ||||
|                </padding> | ||||
|             </VBox> | ||||
|             <VBox spacing="25.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="29.0"> | ||||
|                <children> | ||||
|                   <VBox spacing="10.0"> | ||||
|                      <children> | ||||
|                         <HBox alignment="CENTER_LEFT" spacing="10.0"> | ||||
|                            <children> | ||||
|                               <Label fx:id="mainColorLbl" minWidth="100.0" text="Main-Color" /> | ||||
|                               <JFXColorPicker fx:id="colorPicker" onAction="#colorPickerAction" /> | ||||
|                            </children> | ||||
|                         </HBox> | ||||
|                         <HBox alignment="CENTER_LEFT" spacing="10.0"> | ||||
|                            <children> | ||||
|                               <Label fx:id="fontsizeLbl" minWidth="100.0" text="Fontsize" /> | ||||
|                               <JFXSlider fx:id="fontsizeSlider" max="48.0" min="2.0" prefWidth="250.0" /> | ||||
|                            </children> | ||||
|                         </HBox> | ||||
|                         <HBox alignment="CENTER_LEFT" spacing="10.0"> | ||||
|                            <children> | ||||
|                               <Label fx:id="languageLbl" minWidth="100.0" text="Language" /> | ||||
|                               <ChoiceBox fx:id="languageChoisBox" prefWidth="150.0" /> | ||||
|                            </children> | ||||
|                         </HBox> | ||||
|                      </children> | ||||
|                   </VBox> | ||||
|                   <VBox spacing="10.0"> | ||||
|                      <children> | ||||
|                         <VBox> | ||||
|                            <children> | ||||
|                               <Label fx:id="updateLbl" text="Updates" /> | ||||
|                               <Separator /> | ||||
|                            </children> | ||||
|                            <VBox.margin> | ||||
|                               <Insets /> | ||||
|                            </VBox.margin> | ||||
|                            <padding> | ||||
|                               <Insets right="5.0" /> | ||||
|                            </padding> | ||||
|                         </VBox> | ||||
|                         <HBox alignment="CENTER_LEFT" spacing="10.0"> | ||||
|                            <children> | ||||
|                               <Label fx:id="branchLbl" minWidth="100.0" text="Branch"> | ||||
|                                  <padding> | ||||
|                                     <Insets right="-5.0" /> | ||||
|                                  </padding> | ||||
|                               </Label> | ||||
|                               <ChoiceBox fx:id="branchChoisBox" prefWidth="150.0" /> | ||||
|                            </children> | ||||
|                         </HBox> | ||||
|                         <JFXButton fx:id="updateBtn" buttonType="RAISED" onAction="#updateBtnAction" style="-fx-background-color: #ee3523;" text="check now" /> | ||||
|                         <JFXToggleButton fx:id="autoUpdateToggleBtn" onAction="#autoUpdateToggleBtnAction" text="check for updates on startup"> | ||||
|                            <padding> | ||||
|                               <Insets bottom="-5.0" top="-5.0" /> | ||||
|                            </padding> | ||||
|                         </JFXToggleButton> | ||||
|                         <Label fx:id="versionLbl" text="Version 0.8.0" /> | ||||
|                      </children> | ||||
|                   </VBox> | ||||
|                   <VBox spacing="10.0"> | ||||
|                      <children> | ||||
|                         <VBox> | ||||
|                            <children> | ||||
|                               <Label fx:id="PlayerLbl" text="Player" /> | ||||
|                               <Separator prefWidth="200.0" /> | ||||
|                            </children> | ||||
|                            <padding> | ||||
|                               <Insets right="5.0" /> | ||||
|                            </padding> | ||||
|                         </VBox> | ||||
|                         <JFXToggleButton fx:id="autoplayToggleBtn" onAction="#autoplayToggleBtnAction" text="autoplay"> | ||||
|                            <VBox.margin> | ||||
|                               <Insets /> | ||||
|                            </VBox.margin> | ||||
|                            <padding> | ||||
|                               <Insets bottom="-5.0" top="-5.0" /> | ||||
|                            </padding> | ||||
|                         </JFXToggleButton> | ||||
|                      </children> | ||||
|                   </VBox> | ||||
|                   <VBox spacing="10.0"> | ||||
|                      <children> | ||||
|                         <VBox> | ||||
|                            <children> | ||||
|                               <Label fx:id="sourcesLbl" text="Sources" /> | ||||
|                               <Separator prefWidth="200.0" /> | ||||
|                            </children> | ||||
|                            <padding> | ||||
|                               <Insets right="5.0" /> | ||||
|                            </padding> | ||||
|                         </VBox> | ||||
|                         <HBox spacing="10.0"> | ||||
|                            <children> | ||||
|                               <JFXButton fx:id="addStreamSourceBtn" buttonType="RAISED" onAction="#addStreamSourceBtnAction" prefHeight="32.0" style="-fx-background-color: #ee3523;" text="add stream source" /> | ||||
|                               <JFXButton fx:id="addDirectoryBtn" buttonType="RAISED" onAction="#addDirectoryBtnAction" prefHeight="32.0" style="-fx-background-color: #ee3523;" text="add directory" /> | ||||
|                            </children> | ||||
|                         </HBox> | ||||
|                         <TableView fx:id="sourcesTable" maxWidth="-Infinity" minHeight="150.0" minWidth="-Infinity" prefWidth="443.0"> | ||||
|                            <columns> | ||||
|                               <TableColumn fx:id="sourceColumn" prefWidth="290.0" resizable="false" text="Sources" /> | ||||
|                               <TableColumn fx:id="modeColumn" minWidth="130.0" prefWidth="138.0" resizable="false" text="Mode" /> | ||||
|                            </columns> | ||||
|                         </TableView> | ||||
|                      </children> | ||||
|                   </VBox> | ||||
|                </children> | ||||
|                <padding> | ||||
|                   <Insets left="14.0" /> | ||||
|                </padding> | ||||
|             </VBox> | ||||
|          </children> | ||||
|          <padding> | ||||
|             <Insets bottom="5.0" top="5.0" /> | ||||
|          </padding> | ||||
|       </AnchorPane> | ||||
|    </content> | ||||
| </ScrollPane> | ||||
		Reference in New Issue
	
	Block a user