Skip to content

Commit

Permalink
Release version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twasyl committed Apr 4, 2018
1 parent 2282471 commit ce87dc1
Show file tree
Hide file tree
Showing 612 changed files with 18,493 additions and 4,705 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ out
# Application stuff
felix-cache
plugins
.vertx

# gradle files
.gradle/
gradle.properties
**/gradle.properties
build
**/build/

# maven files
target
**/target/

# Error files generated when JavaFX crashes
hs_err_*
19 changes: 11 additions & 8 deletions .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,25 @@ sudo: true
matrix:
include:
- os: linux
jdk: oraclejdk8
dist: trusty
addons:
apt:
packages:
- fakeroot
- os: osx
osx_image: xcode8.2
osx_image: xcode9.2


before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export JAVA_HOME=$(/usr/libexec/java_home); else chmod +x travis.sh; ./travis.sh; export JAVA_HOME=~/jvm/jdk1.8.0_162; fi;
- chmod +x gradlew

install: true

script:
- chmod +x ./gradlew
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./gradlew build bintrayUpload; else ./gradlew build; fi
- ./gradlew --stop
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./gradlew clean build bintrayUpload -x :slideshowfx-icons:test; else ./gradlew clean build -x :slideshowfx-icons:test; fi

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.gradle
- $HOME/jvm
55 changes: 55 additions & 0 deletions CHANGELOG.textile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,61 @@ p. Changes to the SlideshowFX software are listed by version within this documen

h2. Versions

h3(#2_0). "Version 2.0":#2_0

h4. New and noteworthy

* Update the SlideshowFX-textile plugin ("#32":https://github.com/twasyl/SlideshowFX/issues/32)
* Update the code and snippet extension to support new programming language
* Alert content extension plugin uses new version of SweetAlert
* New Shape plugin allowing to insert shapes in a presentation
* Change the Windows default installation location
* Take the log configuration in consideration
* Creating a new presentation displays a template's library allowing to create presentations from previously used templates
* Display the current time in the information pane during a slideshow
* Adding support for speaker notes
* Ask for confirmation when deleting a presentation's variable
* Introduction of version for templates
* Allow to re-open recent presentations
* Uses ACE 1.3.1 in the slide content editor
* Using FontAwesome 5.0.8
* Twitter integration has been improved

h4. Bug fixes

* Information screen during slideshow react to events emitted by the slideshow, meaning it will react correctly to display current and next slide
* Free information pane's resources correctly when exiting the slideshow mode
* Box hosting connector overwrite an existing file correctly when asked to
* Prevent NullPointerException to be thrown when auto saving is enabled and the presentation hasn't been already saved
* Allow Kotlin snippets to be executed on Windows

h4. Included plugins within the packaging

|_. Plugin |_. Version |
| SlideshowFX-alert-extension | 1.2 |
| SlideshowFX-asciidoctor | 1.1 |
| SlideshowFX-box-hosting-connector | 1.2 |
| SlideshowFX-code-extension | 1.2 |
| SlideshowFX-drive-hosting-connector | 1.3 |
| SlideshowFX-dropbox-hosting-connector | 1.2 |
| SlideshowFX-go-executor | 1.0 |
| SlideshowFX-golo-executor | 1.0 |
| SlideshowFX-groovy-executor | 1.0 |
| SlideshowFX-html | 1.0 |
| SlideshowFX-image-extension | 1.3 |
| SlideshowFX-java-executor | 1.0 |
| SlideshowFX-javascript-executor | 1.0 |
| SlideshowFX-kotlin-executor | 1.1 |
| SlideshowFX-link-extension | 1.2 |
| SlideshowFX-markdown | 1.0 |
| SlideshowFX-quiz-extension | 1.1 |
| SlideshowFX-quote-extension | 1.1 |
| SlideshowFX-scala-executor | 1.0 |
| SlideshowFX-sequence-diagram-extension | 1.1 |
| SlideshowFX-shape-extension | 1.0 |
| SlideshowFX-snippet-extension | 1.2 |
| SlideshowFX-textile | 1.2 |

h3(#1_4). "Version 1.4":#1_4

h4. New and noteworthy
Expand Down
8 changes: 4 additions & 4 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ h1. How to get started

p. As SlideshowFX is a still young project, you will need to build it manually in order to test it. In order to do so, you will need:

* A JDK 8 update 121 ;
* The @JAVA_HOME@ system variable set to point to you JDK 8 update 121 installation.
* A JDK 8 update 152 ;
* The @JAVA_HOME@ system variable set to point to you JDK 8 update 152 installation.

p. Then in order to build the application:

* Open a command line in the repository folder ;
* Execute the command @gradlew build -x test@ and wait for it to finish successfully ;
* Go in @REPOSITORY_HOME/build/distributions/@ in order to archive containing the SlideshowFX installer
* Execute the command @mvn clean package@ and wait for it to finish successfully ;
* Go in @REPOSITORY_HOME/SlideshowFX-setup/target@ in order to find the *SlideshowFXSetup.zip* archive containing the SlideshowFX installer
56 changes: 20 additions & 36 deletions SlideshowFX-alert-extension/build.gradle
Original file line number Diff line number Diff line change
@@ -1,42 +1,26 @@
description = 'Extension allowing to insert alerts inside a SlideshowFX presentation'
version = '1.1'
version = '1.2'

dependencies {
compile project(':SlideshowFX-content-extension')
compile configurations.felix

testCompile configurations.junit
}
apply plugin: 'java-library'

jar {
manifest {
attributes('Manifest-Version': '1.0',
'Bundle-ManifestVersion': '2',
'Bundle-Name': 'SlideshowFX alert extension',
'Bundle-SymbolicName': 'com.twasyl.slideshowfx.content.extension.alert',
'Bundle-Description': 'Support for inserting alert in slides',
'Bundle-Version': "$project.version",
'Bundle-Activator': 'com.twasyl.slideshowfx.content.extension.alert.activator.AlertContentExtensionActivator',
'Bundle-Vendor': 'Thierry Wasylczenko',
'Export-Package': 'com.twasyl.slideshowfx.content.extension.alert.controllers,com.twasyl.slideshowfx.content.extension.alert,com.twasyl.slideshowfx.content.extension.alert.activator',
'Import-Package': 'org.osgi.framework',
'Setup-Wizard-Label': 'Alert',
'Setup-Wizard-Icon-Name': 'EXCLAMATION_TRIANGLE')
}
}

bintray {

configurations = ['archives']
dependencies {
api project(':slideshowfx-content-extension')
implementation project(':slideshowfx-icons')
api project(':slideshowfx-markup')
api project(':slideshowfx-plugin')
api project(':slideshowfx-ui-controls')

pkg {
version {
name = project.version
desc = project.description
released = new Date()
vcsTag = "v${project.version}"
}
}
testCompile "org.mockito:mockito-core:${rootProject.ext.dependencies.mockito.version}"
}

tasks.bintrayUpload.enabled = alertContentExtensionBintrayUploadEnabled
ext.isPlugin = true
ext.isContentExtension = true
ext.bundle = [
name : 'SlideshowFX alert extension',
symbolicName : 'com.twasyl.slideshowfx.content.extension.alert',
description : 'Support for inserting alert in slides',
activator : 'com.twasyl.slideshowfx.content.extension.alert.activator.AlertContentExtensionActivator',
exportPackage : 'com.twasyl.slideshowfx.content.extension.alert.controllers,com.twasyl.slideshowfx.content.extension.alert,com.twasyl.slideshowfx.content.extension.alert.activator',
setupWizardLabel : 'Alert',
setupWizardIconName: 'EXCLAMATION_TRIANGLE'
]
Original file line number Diff line number Diff line change
@@ -1,76 +1,110 @@
package com.twasyl.slideshowfx.content.extension.alert.controllers;

import com.twasyl.slideshowfx.content.extension.AbstractContentExtensionController;
import com.twasyl.slideshowfx.ui.controls.ExtendedTextField;
import com.twasyl.slideshowfx.ui.controls.validators.Validators;
import javafx.beans.property.ReadOnlyBooleanProperty;
import javafx.beans.property.ReadOnlyBooleanWrapper;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.CheckBox;
import javafx.scene.control.RadioButton;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleGroup;

import java.net.URL;
import java.util.ResourceBundle;

/**
* This class is the controller used by the {@code AlertContentExtension.fxml} file.
*
* @author Thierry Wasylczenko
* @version 1.1
* @version 1.2
* @since SlideshowFX 1.0
*/
public class AlertContentExtensionController implements Initializable {
public class AlertContentExtensionController extends AbstractContentExtensionController {

@FXML private ExtendedTextField title;
@FXML private ExtendedTextField text;
@FXML private ToggleGroup typeGroup;
@FXML private RadioButton infoRB;
@FXML private RadioButton successRB;
@FXML private RadioButton warningRB;
@FXML private RadioButton errorRB;
@FXML private CheckBox allowClickOutside;
@FXML private CheckBox showCancelButton;
@FXML private ExtendedTextField buttonText;
@FXML
private ExtendedTextField title;
@FXML
private ExtendedTextField text;
@FXML
private ToggleGroup typeGroup;
@FXML
private RadioButton infoRB;
@FXML
private RadioButton successRB;
@FXML
private RadioButton warningRB;
@FXML
private RadioButton errorRB;
@FXML
private CheckBox allowClickOutside;
@FXML
private CheckBox showCancelButton;
@FXML
private ExtendedTextField buttonText;

/**
* Return the title entered in the UI for this alert.
*
* @return The title of the alert.
*/
public String getTitle() { return this.title.getText(); }
public String getTitle() {
return this.title.getText();
}

/**
* Return the additional text entered in the UI for this alert.
*
* @return The text for this alert.
*/
public String getText() { return this.text.getText(); }
public String getText() {
return this.text.getText();
}

/**
* Return the type of the alert. Currently four values can be returned:
* <ul>
* <li>info</li>
* <li>success</li>
* <li>warning</li>
* <li>error</li>
* <li>info</li>
* <li>success</li>
* <li>warning</li>
* <li>error</li>
* </ul>
*
* @return Return the type of this alert.
*/
public String getType() {
String type = null;

if(this.typeGroup.getSelectedToggle() == this.infoRB) type = "info";
else if(this.typeGroup.getSelectedToggle() == this.successRB) type = "success";
else if(this.typeGroup.getSelectedToggle() == this.warningRB) type = "warning";
else if(this.typeGroup.getSelectedToggle() == this.errorRB) type = "error";
if (this.typeGroup.getSelectedToggle() == this.infoRB) type = "info";
else if (this.typeGroup.getSelectedToggle() == this.successRB) type = "success";
else if (this.typeGroup.getSelectedToggle() == this.warningRB) type = "warning";
else if (this.typeGroup.getSelectedToggle() == this.errorRB) type = "error";

return type;
}

public boolean isClickOutsideAllowed() { return this.allowClickOutside.isSelected(); }
public boolean isClickOutsideAllowed() {
return this.allowClickOutside.isSelected();
}

public boolean isCancelButtonVisible() { return this.showCancelButton.isSelected(); }
public boolean isCancelButtonVisible() {
return this.showCancelButton.isSelected();
}

public String getButtonText() { return this.buttonText.getText(); }
public String getButtonText() {
return this.buttonText.getText();
}

@Override
public ReadOnlyBooleanProperty areInputsValid() {
final ReadOnlyBooleanWrapper property = new ReadOnlyBooleanWrapper();
property.bind(this.title.validProperty());

return property;
}

@Override
public void initialize(URL location, ResourceBundle resources) {
this.title.setValidator(Validators.isNotEmpty());
}
}
Binary file not shown.
Loading

0 comments on commit ce87dc1

Please # to comment.