Skip to content

Commit

Permalink
Update Source Directory Structure
Browse files Browse the repository at this point in the history
* update directory based off Maven
* create sample directory viewer
* update application theme
* fix readme spelling
  • Loading branch information
brp14005 committed Feb 6, 2016
1 parent 837cc75 commit c533d85
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 37 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# IntelliJ
.idea/
*.iml
javafx_scenebuilder_kit_javadoc-2_0.zip
out/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Iron Gate

Iron Gate is the code name given to a really convenient files and foldesr organization system. This is a cross-platform application built for Windows and Mac OSX. Some really great features:
Iron Gate is the code name given to a really convenient files and folders organization system. This is a cross-platform application built for Windows and Mac OSX. Some really great features:

- Tag files and folders for quick search up
- Save folder structures frequently used
Expand Down
30 changes: 0 additions & 30 deletions src/gui/Controller.java

This file was deleted.

35 changes: 35 additions & 0 deletions src/main/java/Controller.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package main.java;

import javafx.fxml.FXML;
import javafx.scene.control.MenuItem;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeView;

import java.util.ResourceBundle;

public class Controller{
@FXML private MenuItem fileOpen;
@FXML private MenuItem fileNew;
@FXML private MenuItem fileTag;
@FXML private MenuItem fileExit;
@FXML private MenuItem editPreferences;
@FXML private TreeView<String> dirTree;

@FXML private ResourceBundle resources;

@FXML
private void initialize() {
createTree();
}

// Create the directory Tree
private void createTree() {
TreeItem<String> root = new TreeItem<String>("Root");
TreeItem<String> itemChild = new TreeItem<String>("Child");
itemChild.setExpanded(false);
root.getChildren().add(itemChild);
dirTree.setRoot(root);
}

}

4 changes: 2 additions & 2 deletions src/gui/Main.java → src/main/java/Main.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gui;
package main.java;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
Expand All @@ -10,7 +10,7 @@ public class Main extends Application {

@Override
public void start(Stage primaryStage) throws Exception{
// setUserAgentStylesheet(STYLESHEET_CASPIAN);
setUserAgentStylesheet(STYLESHEET_CASPIAN);
/* Button btn = new Button();
btn.setText("This is a test");
btn.setOnAction(new EventHandler<ActionEvent>() {
Expand Down
6 changes: 3 additions & 3 deletions src/gui/StartPage.fxml → src/main/java/StartPage.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.Controller">
<AnchorPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="main.java.Controller">
<children>
<MenuBar prefHeight="25.0" prefWidth="789.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<!--suppress JavaFxDefaultTag -->
<menus>
<Menu mnemonicParsing="false" text="File">
<!--suppress JavaFxDefaultTag -->
<items>
<MenuItem fx:id="menuOpen" mnemonicParsing="false" text="Open" />
<MenuItem fx:id="fileOpen" mnemonicParsing="false" text="Open" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
Expand Down Expand Up @@ -41,6 +41,6 @@
</Menu>
</menus>
</MenuBar>
<TreeView layoutY="25.0" prefHeight="552.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="25.0" />
<TreeView fx:id="dirTree" layoutY="25.0" prefHeight="552.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="25.0" />
</children>
</AnchorPane>

0 comments on commit c533d85

Please sign in to comment.