Skip to content

Commit 762465a

Browse files
Fixed some stuff
Signed-off-by: JayFromProgramming <[email protected]>
1 parent 943d898 commit 762465a

File tree

7 files changed

+17
-3
lines changed

7 files changed

+17
-3
lines changed

javaFX-resources/com/example/clippyfx/hello-view.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<Slider fx:id="speedSlider" disable="true" layoutX="7.0" layoutY="560.0" max="200.0" min="50.0" onMouseReleased="#speedSlid" orientation="VERTICAL" prefHeight="72.0" prefWidth="14.0" value="100.0" />
5656
<Text layoutX="10.0" layoutY="598.0" rotate="-90.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Volume" />
5757
<Text layoutX="-17.0" layoutY="601.0" rotate="-90.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Speed" />
58-
<Button fx:id="cropItButton" layoutX="802.0" layoutY="583.0" mnemonicParsing="false" onMouseClicked="#cropIt" text="Crop it!" />
58+
<Button fx:id="cropItButton" disable="true" layoutX="802.0" layoutY="583.0" mnemonicParsing="false" onMouseClicked="#cropIt" text="Crop it!" />
5959
</children>
6060
</AnchorPane>
6161
</VBox>
123 Bytes
Binary file not shown.

src/main/java/EncodingMagic/FilePegGenerator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public FilePegGenerator(String uri) throws URISyntaxException {
4646
this.file = new File(filePath);
4747
}
4848

49+
public void setFile(File file) {
50+
this.file = file;
51+
}
52+
4953
@Override
5054
public PegType getType() {
5155
return PegType.File;

src/main/java/EncodingMagic/URLPegGenerator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public URLPegGenerator(String url) throws URISyntaxException {
3636
this.fileLink = url;
3737
}
3838

39+
@Override
40+
public void setFile(File file) {
41+
42+
}
43+
3944
@Override
4045
public PegType getType() {
4146
return PegType.URI;

src/main/java/EncodingMagic/YoutubePegGenerator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public YoutubePegGenerator(JSONObject youtubeData) {
3636
}
3737

3838

39+
@Override
40+
public void setFile(File file) {
41+
42+
}
43+
3944
@Override
4045
public PegType getType() {
4146
return PegType.Youtube;

src/main/java/Interfaces/PegGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ enum PegType {
1616
URI,
1717
UnDeclared
1818
}
19-
19+
void setFile(File file);
2020
PegType getType();
2121

2222
double getStartTime();

src/main/java/com/example/clippyfx/ImporterView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public void passObjects(TextField VideoURI, Method execute, PegGenerator pegGene
226226
fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("Basic Formats",
227227
"*.mp4", "*.avi", "*.mov"));
228228
fileChooser.setInitialDirectory(new File(SettingsWrapper.getSetting("defaultAdvancedLoadPath").value));
229-
java.io.File file = fileChooser.showOpenDialog(pain.getScene().getWindow());
229+
pegGenerator.setFile(fileChooser.showOpenDialog(pain.getScene().getWindow()));
230230
fileChooser = null;
231231
preformImport();
232232
}

0 commit comments

Comments
 (0)